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
  • 78,834
  • 30
  • 123
  • 180
spig
  • 1,667
  • 6
  • 22
  • 29

2 Answers2

35

Try:

[\u00D8-\u00F6]
NullUserException
  • 83,810
  • 28
  • 209
  • 234
11

Python 2.X

u'[\u00d8-\u00f6]'

Python 3.X

'[\u00d8-\u00f6]'
Community
  • 1
  • 1
Mark Tolonen
  • 166,664
  • 26
  • 169
  • 251