Perl-Sensitive Sunglasses | |
PerlMonks |
Re^3: regex matching specific strings.by markkawika (Monk) |
on Jul 22, 2009 at 23:50 UTC ( [id://782497]=note: print w/replies, xml ) | Need Help?? |
My only tiny quibble with that regex, correct as it is, is that using ^ in combination with \z might be confusing to a future reader. I'd suggest:
Which is technically exactly the same as ikegami's suggestion, but points out to the reader "Hey I'm using less-common techniques in this regex" right at the beginning with that \A.
In Section
Seekers of Perl Wisdom
|
|