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 stiv
Recipients belopolsky, mrabarnett, stiv
Date 2010-12-15.10:30:14
SpamBayes Score 5.303579e-07
Marked as misclassified No
Message-id <alpine.LRH.2.01.1012150228490.22853@homer02.u.washington.edu>
In-reply-to <1292356048.22.0.813686928575.issue10703@psf.upfronthosting.co.za>
Content
(Forehead slap.)

On Tue, 14 Dec 2010, Matthew Barnett wrote:

>
> Matthew Barnett <python@mrabarnett.plus.com> added the comment:
>
> The regex module is intended to replace the re module, so its default behaviour is the same: in Python 2, regexes default to matching ASCII, and in Python 3, they default to matching Unicode.
>
> If you want to use a regex on a Unicode string in Python 2 then you need to set the Unicode flag, either by providing the UNICODE flag or by putting "(?u)" in the regex itself.
>
> ----------
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue10703>
> _______________________________________
>
History
Date User Action Args
2010-12-15 10:30:16stivsetrecipients: + stiv, belopolsky, mrabarnett
2010-12-15 10:30:14stivlinkissue10703 messages
2010-12-15 10:30:14stivcreate