Zim

Comment 13 for bug 518323

Revision history for this message
Jiří Janoušek (fenryxo) wrote :

I have been doing some experiments and Python regex engine seems to support unicode if unicode arguments and re.U flag are provided (example 3).

$ python
Python 2.7.1+ (r271:86832, Apr 11 2011, 18:05:24)
>>> import re
>>> print re.search("\w+", "aaaáÁá...").group() #1
aaa
>>> print re.search(u"\w+", u"aaaáÁá...").group() #2
aaa
>>> print re.search(u"\w+", u"aaaáÁá...", re.U).group() #3
aaaáÁá
>>> print re.search("\w+", "aaaáÁá...", re.U).group() #4
aaa