good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: resetting Perl RegEx backreferencesby hv (Prior) |
on Mar 08, 2006 at 20:11 UTC ( [id://535251]=note: print w/replies, xml ) | Need Help?? |
As davido says, checking that the match succeeded is almost always the right solution. If for some reason you don't want to do that, easiest way is to throw a cheap guaranteed match in before the real match:
Hugo
In Section
Seekers of Perl Wisdom
|
|