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


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

but mind the limitations :) Re: Efficient matching with accompanying data/Re^3: Efficient matching with accompanying data (${^RE_TRIE_MAXBUF})