[issue38582] re: backreference number in replace string can't >= 100

Vedran Čačić report at bugs.python.org
Fri Oct 25 05:32:53 EDT 2019


Vedran Čačić <vedgar at gmail.com> added the comment:

The documentation clearly says:

> This special sequence can only be used to match one of the first 99 groups. If the first digit of number is 0, or number is 3 octal digits long, it will not be interpreted as a group match, but as the character with octal value number.

Maybe it should also mention Serhiy's technique at that place, something like

"If you need more than 99 groups, you can name them using..."

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38582>
_______________________________________


More information about the Python-bugs-list mailing list