triegex
triegex copied to clipboard
Build a trie-structured regular expression from a list of words
Results
2
triegex issues
Sort by
recently updated
recently updated
newest added
suppose there are a list of regexes: ``` a.* abc.* acc\d+efg ``` and a string `acc4` Naively, we would have to loop through all the regexes, and find a match....
Thanks for the library, will definitely try it out: I am facing a simple issue meanwhile: ``` t = Triegex('foo', 'bar', 'baz') t.to_regex() t.add('c++') 'spam' in t import re re.findall(t.to_regex(),...