Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: HELP! - Pattern matching problemby mephit (Scribe) |
on Jul 25, 2002 at 04:17 UTC ( [id://185117]=note: print w/replies, xml ) | Need Help?? |
/^(v\d{2}|\d{2})$/
works, in addition to what DamnDirtyApe said here. (Parens are your friends when using alternations in a regex.)
-- There are 10 kinds of people -- those that understand binary, and those that don't.
In Section
Seekers of Perl Wisdom
|
|