in reply to Re: how should i test whether a string contains between 6 and 20 letters and numbers
in thread how should i test whether a string contains between 6 and 20 letters and numbers
Your solution allows for a trailing newline. Try it with this string:
$_ = "abcdefghijklm\n\n";
You can fix that up with the \z anchor :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: how should i test whether a string contains between 6 and 20 letters and numbers
by GrandFather (Saint) on Jan 30, 2006 at 00:51 UTC | |
by brian_d_foy (Abbot) on Jan 30, 2006 at 01:20 UTC | |
by GrandFather (Saint) on Jan 30, 2006 at 01:55 UTC | |
by brian_d_foy (Abbot) on Jan 30, 2006 at 03:24 UTC | |
by GrandFather (Saint) on Jan 30, 2006 at 19:40 UTC |