[Python-bugs-list] [ python-Bugs-420011 ] \u escapes don't work inside ranges

noreply@sourceforge.net noreply@sourceforge.net
Mon, 10 Dec 2001 00:06:07 -0800


Bugs item #420011, was opened at 2001-04-29 14:14
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=420011&group_id=5470

Category: Regular Expressions
Group: Feature Request
>Status: Closed
>Resolution: Wont Fix
Priority: 3
Submitted By: Fredrik Lundh (effbot)
Assigned to: Fredrik Lundh (effbot)
Summary: \u escapes don't work inside ranges

Initial Comment:
the pattern "[\u0000-\uffff]" should match any
unicode character.  for some reason, it doesn't
seem to do that...

</F>

----------------------------------------------------------------------

Comment By: Fredrik Lundh (effbot)
Date: 2001-04-29 14:18

Message:
Logged In: YES 
user_id=38376

I meant r"[\u0000-\uffff]"

and on second thought, I'm not sure it's a bug: SRE doesn't
seem to support \u and \U escapes at all.  and the pattern
u"[\u0000-\uffff]" works as expected.

I'll change this to a feature request.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=420011&group_id=5470