laziness, impatience, and hubris | |
PerlMonks |
Re^4: alternation in regexes: to use or to avoid?by balker (Novice) |
on Dec 10, 2012 at 15:29 UTC ( [id://1008121]=note: print w/replies, xml ) | Need Help?? |
Please read the benchmark numbers. Alternation is MUCH faster than looping over trivial regexes, except when you use captures inside the alternations.
In Section
Seekers of Perl Wisdom
|
|