[issue20678] re does not allow back references in {} matching operator
Matthew Barnett
report at bugs.python.org
Wed Feb 19 03:40:41 CET 2014
Matthew Barnett added the comment:
Yes.
If it's not a valid repeat, then it's treated as a literal.
Perl does the same.
By the way, "\1" isn't a group reference; it's the same as "\x01". You should be either doubling the backslashes ("\\1") or using a raw string literal (r"\1").
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20678>
_______________________________________
More information about the Python-bugs-list
mailing list