[issue2636] Regexp 2.7 (modifications to current re 2.2.2)
Matthew Barnett
report at bugs.python.org
Fri Oct 3 00:51:06 CEST 2008
Matthew Barnett <python at mrabarnett.plus.com> added the comment:
I've extended the group referencing. It now has:
Forward group references
(\2two|(one))+
\g-type group references
(n is name or number)
\g<n> (Python re replacement string)
\g{n} (Perl)
\g'n' (Perl)
\g"n" (because ' and " are interchangeable)
\gn (n is single digit) (Perl)
(n is number)
\g<+n>
\g<-n>
\g{+n} (Perl)
\g{-n} (Perl)
\k-type group references
(n is group name)
\k<n> (Perl)
\k{n} (Perl)
\k'n' (Perl)
\k"n" (because ' and " are interchangeable)
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2636>
_______________________________________
More information about the Python-bugs-list
mailing list