Matching only a unicode letter in Python re
Matching only a unicode letter in Python re Question: I have a string from which i want to extract 3 groups: ’19 janvier 2012′ -> ’19’, ‘janvier’, ‘2012’ Month name could contain non ASCII characters, so [A-Za-z] does not work for me: >>> import re >>> re.search(ur'(d{,2}) ([A-Za-z]+) (d{4})’, u’20 janvier 2012′, re.UNICODE).groups() (u’20’, u’janvier’, …