The stupid question is the question not asked | |
PerlMonks |
Re: Regexp experts, come to rescue!by mirod (Canon) |
on Feb 01, 2001 at 20:08 UTC ( [id://55727]=note: print w/replies, xml ) | Need Help?? |
Apart for the previous problem you should also anchor your regexps: /^-[45][15j]$/ # note the ^ and $otherwise you will match the regexp anywhere in the string: "toto-45tata" would match Then your interpretation is right, otherwise it would be
In Section
Seekers of Perl Wisdom
|
|