Regexp-Assemble reviews


RSS | Module Info | Add a review of Regexp-Assemble

Regexp-Assemble (0.36)

I guess it depends on your data, but for random shortish strings (hundreds to thousands of them), I find that using raw joining is much faster to assemble the regex. And the resulting regex is also (much) faster to match. Please see Bencher::Scenario::RegexpAssemble if you're interested in the benchmark script.

Regexp-Assemble (0.23) *****

This is the single most useful Regexp module that I know.
No longer will I compute my regexps with code like $re = qr/@{[join '|', reverse sort @items]}/ !

Perl 6 should definitely provide a way to assemble regular expressions in such an optimised way.

Regexp-Assemble (0.09) *****

Rather that loop through an array of Regexps looking for a match, this module allows for one to combine them all into one Regexp. This makes code much cleaner and easier to maintain. It is an excellent module.

Note that I'm not sure how well optimized the combined Regexp is compared to iterating through a loop, but for my purposes this hasn't been a concern.