triegex
triegex copied to clipboard
Issue with added c++ as keyword
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(), 'c++')
Full stack trace is too long, sharing last part of it here
639 if item[0][0] in _REPEATCODES:
640 raise source.error("multiple repeat",
--> 641 source.tell() - here + len(this))
642 if sourcematch("?"):
643 subpattern[-1] = (MIN_REPEAT, (min, max, item))
error: multiple repeat at position 19