P is for Practical | |
PerlMonks |
Re: Re: Trying to count the captures in a compiled regular expressionby hv (Prior) |
on May 03, 2004 at 08:31 UTC ( [id://349963]=note: print w/replies, xml ) | Need Help?? |
Very nice. :) You can go a step better by making the outer match minimal, which means it will immediately match zero times and thus avoid the time and danger of trying to match the interior at all:
Hugo
In Section
Seekers of Perl Wisdom
|
|