Ezio Melotti <ezio.melo...@gmail.com> added the comment: You either have to double escape it (once for python and then for the regex engine) or use raw strings: >>> re.match("\\\\", '\\').group() '\\' >>> re.match(r"\\", '\\').group() '\\'
---------- assignee: -> ezio.melotti resolution: -> invalid stage: -> committed/rejected status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13409> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com