Emanuel Barry added the comment: For future reference, if your input can have arbitrary escapes, it might be a good idea to pass it through re.escape; it does proper escaping so that stuff like e.g. \g in your input will get treated as a literal backslash, followed by a literal 'g', and not an escape sequence.
---------- nosy: +ebarry type: compile error -> behavior _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27586> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com