[issue42871] Regex compilation crashed if I change order of alternatives under quantifier

Matthew Barnett report at bugs.python.org
Fri Jan 8 21:00:02 EST 2021


Matthew Barnett <python at mrabarnett.plus.com> added the comment:

It's not a crash. It's complaining that you're referring to group 2 before defining it. The re module doesn't support forward references to groups, but only backward references to them.

----------

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


More information about the Python-bugs-list mailing list