[issue2537] re.compile(r'((x|y+)*)*') should fail

Matthew Barnett report at bugs.python.org
Thu Feb 11 21:49:46 CET 2010


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

The re module is addressed in issue #2636.

BTW, my regex module behaves like Ruby:

>>> regex.sub(r"((x|y)*)*", "(\\1, \\2)", "xyyzy", count=1)
'(, y)zy'
>>> regex.sub(r"((x|y+)*)*", "(\\1, \\2)", "xyyzy", count=1)
'(, yy)zy'

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

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


More information about the Python-bugs-list mailing list