23

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?

tchrist
  • 76,727
  • 28
  • 123
  • 176
spig
  • 1,647
  • 6
  • 22
  • 29

2 Answers2

32

Try:

[\u00D8-\u00F6]
NullUserException
  • 81,190
  • 27
  • 202
  • 228
10

Python 2.X

u'[\u00d8-\u00f6]'

Python 3.X

'[\u00d8-\u00f6]'
Community
  • 1
  • 1
Mark Tolonen
  • 148,243
  • 22
  • 160
  • 229