Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I specify a range of unicode characters in a regular-expression in python? [duplicate]

Tags:

I am trying to match a range of Unicode characters and I am wondering how to do it. I can match simple ranges like [a-zA-Z] but how do I specify a range of Unicode characters. I've tried

[#xD8-#xF6] 

without any luck. Any ideas?

like image 775
spig Avatar asked Sep 20 '10 05:09

spig


1 Answers

Try:

[\u00D8-\u00F6] 
like image 195
NullUserException Avatar answered Oct 02 '22 22:10

NullUserException