[New-bugs-announce] [issue6156] Error compiling valid regex

Daniel Eloff report at bugs.python.org
Sun May 31 18:26:02 CEST 2009


New submission from Daniel Eloff <dan.eloff at gmail.com>:

This works:

r'([xy])(?:\1)+'

This won't compile, "error: nothing to repeat"

r'([xy])(?:\s*\1)+'

I can execute this under other regex engines, and it seems to me that it
really should work.

----------
components: Library (Lib)
messages: 88600
nosy: Eloff
severity: normal
status: open
title: Error compiling valid regex
type: behavior
versions: Python 2.6

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


More information about the New-bugs-announce mailing list