| Store | Cart

Re: [Python-Dev] New regex module for 3.2?

From: Vlastimil Brom <vlas...@gmail.com>
Fri, 16 Jul 2010 17:08:03 +0200
2010/7/9 Georg Brandl <g.br...@gmx.net>:
> Am 09.07.2010 02:35, schrieb MRAB:>>>>> 1. Some of the inline flags are scoped; for example, putting "(?i)" at>> the end of a regex will now have no effect because it's no longer a>> global, all-or-nothing, flag.>> That is problematic.  I've often seen people put these flags at the end> of a regex, probably for readability purposes.  IMHO it would be better> to limit flag scoping to the explicit (?flags-flags: ) groups.>

I just noticed the formulation on the reference page
regular-expressions.info on this kind of flags:
"(?i)	Turn on case insensitivity for the remainder of the regular
expression. (Older regex flavors may turn it on for the entire
regex.)" and likewise for other flags.

http://www.regular-expressions.info/refadv.html

I am not sure, how "authoritative" this page by Jan Goyvaerts is for
various implementations, but it looks like a very comprehensive
reference.
I think with a new regex implementation, not all of this "historical"
semantics must be copied, unless there are major real usecases, which
would be affected by this.
Just a thought;
    Vlastimil Brom
_______________________________________________
Python-Dev mailing list
Pyth...@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/python-dev-ml%40activestate.com

Recent Messages in this Thread
MRAB Jul 08, 2010 07:52 pm
Nick Coghlan Jul 08, 2010 09:34 pm
MRAB Jul 08, 2010 09:54 pm
Nick Coghlan Jul 08, 2010 10:13 pm
MRAB Jul 09, 2010 12:35 am
Georg Brandl Jul 09, 2010 06:54 am
Vlastimil Brom Jul 16, 2010 03:08 pm
Georg Brandl Jul 16, 2010 05:08 pm
Guido van Rossum Jul 22, 2010 10:53 am
Georg Brandl Jul 26, 2010 09:06 pm
Benjamin Peterson Jul 08, 2010 09:48 pm
Antoine Pitrou Jul 08, 2010 09:53 pm
anatoly techtonik Jul 09, 2010 02:06 pm
Jeffrey Yasskin Jul 09, 2010 03:59 pm
anatoly techtonik Jul 11, 2010 09:19 am
Eric Smith Jul 11, 2010 11:37 am
Nick Coghlan Jul 11, 2010 12:19 pm
MRAB Jul 09, 2010 05:28 pm
Collin Winter Jul 09, 2010 06:58 pm
MRAB Jul 09, 2010 07:35 pm
Fred Drake Jul 09, 2010 08:14 pm
Steven DAprano Jul 11, 2010 11:42 pm
geremy condra Jul 12, 2010 12:49 am
Georg Brandl Jul 22, 2010 11:34 am
Nick Coghlan Jul 22, 2010 01:12 pm
Georg Brandl Jul 22, 2010 02:42 pm
Reid Kleckner Jul 22, 2010 03:13 pm
Nick Coghlan Jul 22, 2010 10:26 pm
Hrvoje Niksic Jul 23, 2010 10:16 am
Nick Coghlan Jul 23, 2010 11:20 am
Georg Brandl Jul 23, 2010 01:44 pm
Georg Brandl Jul 23, 2010 01:45 pm
Messages in this thread