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 Seth.Troisi, docs@python, ezio.melotti, r.david.murray, terry.reedy
Date 2011-05-29.02:01:00
SpamBayes Score 0.004814484
Marked as misclassified No
Message-id <1306634461.46.0.478749165188.issue12162@psf.upfronthosting.co.za>
In-reply-to
Content
The regex sets (\d\w\s\D\W\S) don't match any Python escape sequence, so even if some suggest to always use r'' regardless, I don't find it necessary, especially for simple regexs.
The two conflicting escape sequences to keep in mind are \b (backspace for Python, word boundary for re) and \number (octal escape for Python, reference to a group for re).
There are also other regex escape sequences that are rarely used (\B\A\Z), but these don't need to be escaped either.
History
Date User Action Args
2011-05-29 02:01:01ezio.melottisetrecipients: + ezio.melotti, terry.reedy, r.david.murray, docs@python, Seth.Troisi
2011-05-29 02:01:01ezio.melottisetmessageid: <1306634461.46.0.478749165188.issue12162@psf.upfronthosting.co.za>
2011-05-29 02:01:00ezio.melottilinkissue12162 messages
2011-05-29 02:01:00ezio.melotticreate