Commit Graph

105 Commits

Author SHA1 Message Date
Serhiy Storchaka
4809d1fccd Issues #814253, #9179: Warnings now are raised when group references and
conditional group references are used in lookbehind assertions in regular
expressions.
2015-02-21 12:08:36 +02:00
Benjamin Peterson
f8c8d2e366 backout fac649bf2d10 (#9179) for further consideration 2014-11-30 11:47:54 -05:00
Serhiy Storchaka
e927757df6 Issue #12728: Different Unicode characters having the same uppercase but
different lowercase are now matched in case-insensitive regular expressions.
2014-11-10 12:37:02 +02:00
Serhiy Storchaka
15ea870e29 Issues #814253, #9179: Group references and conditional group references now
work in lookbehind assertions in regular expressions.
2014-11-07 21:43:45 +02:00
Serhiy Storchaka
e9e54ae222 Issue #17381: Fixed ranges handling in case-insensitive regular expressions. 2014-10-31 13:53:21 +02:00
Serhiy Storchaka
d4c7290368 Issue #22410: Module level functions in the re module now cache compiled
locale-dependent regular expressions taking into account the locale.
2014-10-31 00:53:19 +02:00
Benjamin Peterson
bc4ece5775 allow longs as indexes to group() (closes #22530) 2014-09-30 22:04:28 -04:00
Serhiy Storchaka
c0799e3a26 Issue #22423: Fixed debugging output of the GROUPREF_EXISTS opcode in the re
module.
2014-09-21 22:47:30 +03:00
Serhiy Storchaka
038fac67c0 Test re pickling for all protocols. 2014-09-15 11:35:06 +03:00
Serhiy Storchaka
7644ff1fb1 Now re tests work again on Unicode-disabled build.
Simplified existing detections of Unicode-disabled build.
2014-09-14 17:40:44 +03:00
Serhiy Storchaka
ed5ea15bda Use more appropriate asserts in re tests. 2014-09-14 16:19:37 +03:00
Serhiy Storchaka
e50fe4c9eb Issue #20283: RE pattern methods now accept the string keyword parameters
as documented.  The pattern and source keyword parameters are left as
deprecated aliases.
2014-03-06 12:24:29 +02:00
Antoine Pitrou
f581411255 Issue #20426: When passing the re.DEBUG flag, re.compile() displays the debug output every time it is called, regardless of the compilation cache. 2014-02-03 20:59:59 +01:00
Zachary Ware
1f70221b86 Issue #19572: More silently skipped tests explicitly skipped. 2013-12-10 14:09:20 -06:00
Serhiy Storchaka
22fb0dec30 Issue #19327: Fixed the working of regular expressions with too big charset. 2013-10-24 22:02:42 +03:00
Serhiy Storchaka
83737c632c Issue #2537: Remove breaked check which prevented valid regular expressions.
Patch by Meador Inge.

See also issue #18647.
2013-08-19 23:20:07 +03:00
Serhiy Storchaka
3ade66c203 Issue #17998: Fix an internal error in regular expression engine. 2013-08-03 19:26:33 +03:00
R David Murray
6077339270 #17341: Include name in re error message about invalid group name.
Patch by Jason Michalski.
2013-04-14 13:08:50 -04:00
Serhiy Storchaka
6a8e2b4982 Issue #9669: Protect re against infinite loops on zero-width matching in
non-greedy repeat.  Patch by Matthew Barnett.
2013-02-16 21:23:01 +02:00
Serhiy Storchaka
e18e05cce9 Issue #13169: The maximal repetition number in a regular expression has been
increased from 65534 to 2147483647 (on 32-bit platform) or 4294967294 (on
64-bit).
2013-02-16 16:47:15 +02:00
Ezio Melotti
5c4e32b131 #13899: \A, \Z, and \B now correctly match the A, Z, and B literals when used inside character classes (e.g. [A]). Patch by Matthew Barnett. 2013-01-11 08:32:01 +02:00
Antoine Pitrou
74635c9177 Fix test splitting in previous commit. 2012-12-03 21:08:43 +01:00
Antoine Pitrou
735f36edb8 Split the bigmem re test in two separate tests with different memory requirements. 2012-12-03 20:53:12 +01:00
Antoine Pitrou
b83575b0a5 Issue #10182: The re module doesn't truncate indices to 32 bits anymore.
Patch by Serhiy Storchaka.
2012-12-02 12:52:36 +01:00
Antoine Pitrou
b83ea144cc Issue #1160: Fix compiling large regular expressions on UCS2 builds.
Patch by Serhiy Storchaka.
2012-11-20 22:30:42 +01:00