Regular expressions and non-standard character set

Fredrik Lundh fredrik at pythonware.com
Wed Mar 21 12:23:44 EST 2001


I wrote:
> are you sure?

turns out I wasn't sure what I were doing...

"(?L)\b" and "(?L)\B" doesn't work properly in 2.0 and 2.1b1, under
non-C locales.  \W and other locale-dependent operators work as
expected, though.

this will be fixed in 2.1b2 (out soon) and hopefully also in 2.0.1 (out
when it's done).

to work around this problem, use "pre" instead of "re".

Sorry /F





More information about the Python-list mailing list