Keep It Simple, Stupid | |
PerlMonks |
Re^3: Regular expression for hexadecimal numberby radiantmatrix (Parson) |
on Jul 30, 2007 at 15:13 UTC ( [id://629591]=note: print w/replies, xml ) | Need Help?? |
What you describe is accomplished not by using a modifier, but by being explicit in the definition of the char class:
There's no reason to have or use modifiers on only part of a regex, when one can simply use the mechanisms already available to accomplish the same goal.
<–radiant.matrix–>
Ramblings and references The Code that can be seen is not the true Code I haven't found a problem yet that can't be solved by a well-placed trebuchet
In Section
Seekers of Perl Wisdom
|
|