http://www.perlmonks.org?node_id=1055992


in reply to Generate a single "or regex" from given strings

(maybe TL;DR but as a side remark)

Trie optimization is a builtin since Perl 5.10, maybe you should test that too.

Cheers Rolf

( addicted to the Perl Programming Language)