Welcome to the Monastery | |
PerlMonks |
Re^2: alternation in regexes: to use or to avoid?by balker (Novice) |
on Dec 10, 2012 at 18:42 UTC ( [id://1008148]=note: print w/replies, xml ) | Need Help?? |
But that doesn't leave room for the various match-words to have different "\w+"'s - e.g. /\bFOO:\s*bar(\d+)/ or /\bBAZ:\s*(\w+)/ I guess I'm wondering why the trie-optimization isn't used for fixed string prefixes as well (as I'd assumed before I wrote the code).
In Section
Seekers of Perl Wisdom
|
|