[issue18647] re.error: nothing to repeat
Tim Peters
report at bugs.python.org
Mon Aug 5 01:15:01 CEST 2013
Tim Peters added the comment:
Matthew, yes, I agree that a regexp engine can be coded to be robust against unboundedly repeated matching of an empty string. I don't know whether Python's current engine is so coded. It's easy to trick the 2.7 engine into accepting regexps that do try to match an empty string endlessly, but across all I've tried none show "infinite loop" (or even slow) behavior.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18647>
_______________________________________
More information about the Python-bugs-list
mailing list