[issue6156] Error compiling valid regex

Matthew Barnett report at bugs.python.org
Sun May 31 21:59:01 CEST 2009


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

I agree that it's a bug.

A workaround is r'([xy])(?:\s{0,65534}\1)+'. A repeat of 65535 is
treated as unlimited (but no warning is given).

----------
nosy: +mrabarnett

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


More information about the Python-bugs-list mailing list