Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #39673

Re: Correct handling of case in unicode and regexps

References <CABicbJLzQ9AHrGuaooiBRk45U5CHZYw6CodJFiQvAuF4+7kToA@mail.gmail.com> <CAHzaPEMmSExoFunOp_OyRCEOKE-+WzEO-hdb61DUiZFnzOG_rw@mail.gmail.com>
From Devin Jeanpierre <jeanpierreda@gmail.com>
Date 2013-02-23 10:26 -0500
Subject Re: Correct handling of case in unicode and regexps
Newsgroups comp.lang.python
Message-ID <mailman.2349.1361633248.2939.python-list@python.org> (permalink)

Show all headers | View raw


On Sat, Feb 23, 2013 at 10:11 AM, Vlastimil Brom
<vlastimil.brom@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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Correct handling of case in unicode and regexps Devin Jeanpierre <jeanpierreda@gmail.com> - 2013-02-23 10:26 -0500

csiph-web