[issue15956] backreference to named group does not work

Amaury Forgeot d'Arc report at bugs.python.org
Mon Sep 17 16:13:44 CEST 2012


Amaury Forgeot d'Arc added the comment:

\g is meant to be used in re.sub(), in the replacement text (see the docs); in the search pattern, (?P=startquote) can be used to refer to a named group.
The docs of "(?P<name>...)" looks clear to me.

----------
nosy: +amaury.forgeotdarc
resolution:  -> invalid
stage:  -> committed/rejected
status: open -> closed

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


More information about the Python-bugs-list mailing list