No such thing as a small change | |
PerlMonks |
Re: regexp with mismatchesby JavaFan (Canon) |
on Mar 25, 2012 at 16:33 UTC ( [id://961506]=note: print w/replies, xml ) | Need Help?? |
For the first question, use:
As for the generic case, you don't. Regexes aren't suitable for that. For particular cases, you may be able to get away with listing all possibilities, or by using (?{...}), but in a general case, you'd be using the wrong tool.
In Section
Seekers of Perl Wisdom
|
|