Xah Lee : > how to represent the unicode "em space" in regex? > > e.g. i want do something like this: > > fracture=re.split(r'\342371*\|\342371*',myline,re.U)
I'm not sure what you're trying to do, but would it help you to use
it's name:
>>> EM_SPACE = u'\N{EM SPACE}'
>>> fracture = myline.split(EM_SPACE)
?
Cheers,
--
Klaus Alexander Seistrup
Magnetic Ink, Copenhagen, Denmark
http://magnetic-ink.dk/
--
http://mail.python.org/mailman/listinfo/python-list
