Perl: the Markov chain saw | |
PerlMonks |
Re: Regex Pattern Problemby ZZamboni (Curate) |
on Feb 28, 2001 at 02:53 UTC ( [id://61216]=note: print w/replies, xml ) | Need Help?? |
I think your logical statement can be restated as "a line made
only of digits, at least 5 digits long", and in that case
the regular expression you need is
You could add a \s* right before the $ if you want to allow for spaces at the end. Or if you want to allow both digits and spaces, you could use:
In Section
Seekers of Perl Wisdom
|
|