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


Groups > comp.lang.python > #39689 > unrolled thread

Re: Correct handling of case in unicode and regexps

Started byDevin Jeanpierre <jeanpierreda@gmail.com>
First post2013-02-23 12:51 -0500
Last post2013-02-23 12:51 -0500
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#39689 — Re: Correct handling of case in unicode and regexps

FromDevin Jeanpierre <jeanpierreda@gmail.com>
Date2013-02-23 12:51 -0500
SubjectRe: Correct handling of case in unicode and regexps
Message-ID<mailman.2360.1361641954.2939.python-list@python.org>
On Sat, Feb 23, 2013 at 12:41 PM, MRAB <python@mrabarnett.plus.com> wrote:
> Getting full case folding to work can be tricky. There's always going to
> be a limit to what's worth doing.
>
> There are also areas where it's not clear what the result should be.
> You've already mentioned matching 's' against 'ß' (fails) and matching
> 'ss' against 'ß' (succeeds), but how about matching '(s)(s)' against 'ß'
> (fails)?
>
> For the record, Perl also says that 'ss' matches 'ß', but 's+' does not.

I would find it helpful to know the exact rules. The regex module docs
say that it works, but don't say what it means to "work".

-- Devin

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web