[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

Mark Summerfield report at bugs.python.org
Wed Jul 7 10:57:06 CEST 2010


Mark Summerfield <mark at qtrac.eu> added the comment:

On the PyPI page:
http://pypi.python.org/pypi/regex/0.1.20100706.1
in the "Subscripting for groups" bullet it gives this pattern:

r"(?<before>.*?)(?<num>\\d+)(?<after>.*)"

Shouldn't this be:

r"(?P<before>.*?)(?P<num>\\d+)(?P<after>.*)"

Or has a new syntax been introduced?

----------

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


More information about the Python-bugs-list mailing list