Slug has asked for the wisdom of the Perl Monks concerning the following question:
while ($FileStr !~ m/(^[a-zA-Z])\w{2,5}/) {<br><br> print ("Please input a valid filename:");<br> $FileStr = <STDIN>;<br> chomp ($FileStr);<br> $x = length($FileStr);<br> }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regular Expression help
by ikegami (Patriarch) on Jan 07, 2008 at 17:27 UTC | |
|
Re: Regular Expression help
by locked_user sundialsvc4 (Abbot) on Jan 07, 2008 at 19:12 UTC | |
|
Re: Regular Expression help
by CountZero (Bishop) on Jan 07, 2008 at 20:05 UTC | |
|
Re: Regular Expression help
by Slug (Acolyte) on Jan 07, 2008 at 17:32 UTC | |
by Corion (Patriarch) on Jan 07, 2008 at 17:35 UTC | |
by suaveant (Parson) on Jan 07, 2008 at 17:35 UTC | |
by ikegami (Patriarch) on Jan 07, 2008 at 17:48 UTC | |
|
Re: Regular Expression help
by Anonymous Monk on Jan 07, 2008 at 21:51 UTC | |
|
Re: SOLVED Regular Expression help
by bot403 (Beadle) on Jan 08, 2008 at 17:53 UTC |