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.

classification
Title: \u escapes don't work inside ranges
Type: enhancement Stage:
Components: Regular Expressions Versions:
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: effbot Nosy List: effbot
Priority: low Keywords:

Created on 2001-04-29 21:14 by effbot, last changed 2022-04-10 16:04 by admin. This issue is now closed.

Messages (2)
msg4560 - (view) Author: Fredrik Lundh (effbot) * (Python committer) Date: 2001-04-29 21:14
the pattern "[\u0000-\uffff]" should match any
unicode character.  for some reason, it doesn't
seem to do that...

</F>
msg4561 - (view) Author: Fredrik Lundh (effbot) * (Python committer) Date: 2001-04-29 21:18
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.
History
Date User Action Args
2022-04-10 16:04:01adminsetgithub: 34434
2001-04-29 21:14:53effbotcreate