in reply to Re^2: simple pattern match ?
in thread simple pattern match ?
On Perl 5.8.5, the pattern works for me:
#!perl -w for (qw( 00 01 02 03 04 05 06 07 08 09 0 1 2 3 4 5 6 7 8 9 10 20 30 40 50 58 59 )) { die "Ooops: $_ didn't match the regular expression" unless /([012345]?\d)/; }; print "All numbers passed.";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: simple pattern match ?
by McDarren (Abbot) on Mar 15, 2006 at 17:12 UTC | |
by Corion (Patriarch) on Mar 15, 2006 at 17:15 UTC |