Correct handling of case in unicode and regexps

Devin Jeanpierre jeanpierreda at gmail.com
Sat Feb 23 10:26:40 EST 2013


On Sat, Feb 23, 2013 at 10:11 AM, Vlastimil Brom
<vlastimil.brom at gmail.com> wrote:
> you may check the new regex implementation
> https://pypi.python.org/pypi/regex
> which does support casefolding in case insensitive matches (beyond
> many other features and improvements comparing to re)

Good point, I've been looking only at re, but maybe regex is more
pertinent after a point.

However, regex has the same behavior.

>>> regex.match('ss', 'ß', regex.UNICODE | regex.IGNORECASE)
>>>

-- Devin



More information about the Python-list mailing list