This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ezio.melotti
Recipients ezio.melotti, mlesniew
Date 2011-11-15.19:16:18
SpamBayes Score 0.009297419
Marked as misclassified No
Message-id <1321384578.66.0.856430623812.issue13409@psf.upfronthosting.co.za>
In-reply-to
Content
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()
'\\'
History
Date User Action Args
2011-11-15 19:16:18ezio.melottisetrecipients: + ezio.melotti, mlesniew
2011-11-15 19:16:18ezio.melottisetmessageid: <1321384578.66.0.856430623812.issue13409@psf.upfronthosting.co.za>
2011-11-15 19:16:18ezio.melottilinkissue13409 messages
2011-11-15 19:16:18ezio.melotticreate