in reply to Re^2: Looking for a cleaner regex
in thread Looking for a cleaner regex

Why don't you just trust in the internal trie optimization?

Update: eg compare Re: How to tokenize string by custom dictionary? (+code)

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Wikisyntax for the Monastery

  • Comment on Re^3: Looking for a cleaner regex (trie)