[issue2636] Regexp 2.7 (modifications to current re 2.2.2)
Matthew Barnett
report at bugs.python.org
Mon Sep 13 06:24:48 CEST 2010
Matthew Barnett <python at mrabarnett.plus.com> added the comment:
issue2636-20100913.zip is a new version of the regex module.
I've removed the ZEROWIDTH flag and added the NEW flag, which turns on the new behaviour such as splitting on zero-width matches and positional flags. If the NEW flag isn't turned on then the inline flags are global, like in the re module.
You were right about those bugs in the regex module, Vlastimil. :-(
I've left the permissiveness of the sets in, at least for the moment, or until someone complains about it!
Incidentally:
>>> re.findall(r"[\B]", "aBc")
[]
>>> re.findall(r"[\c]", "aBc")
['c']
so it is a bug in the re module (it's putting a non-word-boundary in a set).
----------
Added file: http://bugs.python.org/file18865/issue2636-20100913.zip
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2636>
_______________________________________
More information about the Python-bugs-list
mailing list