regex and IGNORECASE

Yann Le Boulanger asterix at lagaule.org
Mon Nov 26 05:53:46 EST 2007


Hi all,

I have a problem with regex , utf-8 chars and IGNORECASE

 >>> re.search(u'é', u'qwért', re.IGNORECASE)
<_sre.SRE_Match object at 0x2aaaaed0c100>

Here everything is ok.


 >>> re.search(u'É', u'qwért', re.IGNORECASE)

Here that doesn't work. but:
 >>> print u'é'.upper()
É

is it a bug in IGNORECASE option?

Thanks for your help
-- 
Yann



More information about the Python-list mailing list