http://qs321.pair.com?node_id=1179864


in reply to Building Regex Alternations Dynamically

Note: There is a module which does this with optimization: Regexp::Trie. And there is a fancier Regexp::Assemble.

Good Day,
    Dean