JS port of @dankogai's RegexpTrie, written in Coco.
RegExp('^' + Retrie(['a', 'ab', 'ac', 'd'])) //=> /^(?:a[bc]?|d)/
RegExp('^' + Retrie(['abcd'], true)) //=> /^a(?:b(?:cd?)?)?/
Tiny library to make optimized regexes for a specific set of texts
JS port of @dankogai's RegexpTrie, written in Coco.
RegExp('^' + Retrie(['a', 'ab', 'ac', 'd'])) //=> /^(?:a[bc]?|d)/
RegExp('^' + Retrie(['abcd'], true)) //=> /^a(?:b(?:cd?)?)?/
Tiny library to make optimized regexes for a specific set of texts
http://satyr.github.com/retrie/
Other