Re: Pyton re module and POSIX equivalence classes

2015-06-01 Thread MRAB
On 2015-06-01 23:48, Mark Lawrence wrote: On 01/06/2015 21:29, Tim Chase wrote: Is Python supposed to support POSIX "equivalence classes"? I tried the following in Py2 and Py3: >>> re.sub('[[=a=]]', 'A', 'aáàãâä', re.U) 'aáàãâä' which suggests that it doesn't (I would have expected "AAA

Re: Pyton re module and POSIX equivalence classes

2015-06-01 Thread Mark Lawrence
On 01/06/2015 21:29, Tim Chase wrote: Is Python supposed to support POSIX "equivalence classes"? I tried the following in Py2 and Py3: >>> re.sub('[[=a=]]', 'A', 'aáàãâä', re.U) 'aáàãâä' which suggests that it doesn't (I would have expected "AA" as the result). Is there a way to get