[issue11665] Regexp findall freezes

Matthew Barnett report at bugs.python.org
Fri Mar 25 17:36:11 CET 2011


Matthew Barnett <python at mrabarnett.plus.com> added the comment:

Alex is correct.

This part:

    [^<>]*

can match an empty string, and it's nested with a repeated group. It stalls, repeatedly matching an empty string.

Incidentally, my regex implementation (available on PyPI) returns [].

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11665>
_______________________________________


More information about the Python-bugs-list mailing list