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 <rep...@bugs.python.org> <http://bugs.python.org/issue20678> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com