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

Serhiy Storchaka report at bugs.python.org
Fri Oct 25 04:19:05 EDT 2019


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

I do not believe somebody uses handwritten regular expressions with more than 100 groups. But if you generate regular expression, you can use named groups (?P<g12345>...) (?P=g12345).

----------

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


More information about the Python-bugs-list mailing list