summaryrefslogtreecommitdiffstats
path: root/Lib/sre_parse.py
Commit message (Collapse)AuthorAgeFilesLines
* Issues #814253, #9179: Group references and conditional group references nowSerhiy Storchaka2014-11-071-9/+24
| | | | work in lookbehind assertions in regular expressions.
* Issue #22423: Fixed debugging output of the GROUPREF_EXISTS opcode in the reSerhiy Storchaka2014-09-211-18/+27
| | | | module.
* Display the name not the group itselfRaymond Hettinger2014-06-231-1/+1
|
* Issue #8343: Named group error msgs did not show the group name.Raymond Hettinger2014-06-231-3/+6
|
* Issue #18050: Fixed an incompatibility of the re module with Python 2.7.3Serhiy Storchaka2013-09-201-1/+0
| | | | and older binaries.
* Issue #18647: Correctly bound calculated min/max width of a subexpression.Serhiy Storchaka2013-08-191-5/+5
| | | | | Now max width is MAXREPEAT on 32- and 64-bit platforms when one of subexpressions is unbounded repetition.
* #17341: Include name in re error message about invalid group name.R David Murray2013-04-141-2/+4
| | | | Patch by Jason Michalski.
* Issue #13169: The maximal repetition number in a regular expression has beenSerhiy Storchaka2013-02-161-2/+7
| | | | | increased from 65534 to 2147483647 (on 32-bit platform) or 4294967294 (on 64-bit).
* #13899: \A, \Z, and \B now correctly match the A, Z, and B literals when ↵Ezio Melotti2013-01-111-1/+1
| | | | used inside character classes (e.g. [A]). Patch by Matthew Barnett.
* #12759: sre_parse now raises a proper error when the name of the group is ↵Ezio Melotti2012-11-031-1/+7
| | | | missing. Initial patch by Serhiy Storchaka.
* remove set compat cruftBenjamin Peterson2008-10-141-6/+0
|
* remove some __getslice__Benjamin Peterson2008-05-271-2/+0
|
* Make sre's SubPattern objects accept slice objects like it already acceptsThomas Wouters2006-12-191-0/+2
| | | | simple slices.
* Bug #1202493: Fixing SRE parser to handle '{}' as perl does, rather thanGustavo Niemeyer2005-09-141-0/+3
| | | | considering it exactly like a '*'.
* Complete the previous effort to factor out constant expressionsRaymond Hettinger2005-02-281-8/+19
| | | | and improve the speed of the if/elif/else blocks.
* Minor aesthetic change in sre_parse.py, as suggested by Mike Coleman.Gustavo Niemeyer2004-09-031-2/+2
|
* Applying modified version of patch #1018386, which fixesGustavo Niemeyer2004-09-031-42/+36
| | | | some escaping bugs in SRE.
* PEP 292 classes Template and SafeTemplate are added to the string module.Barry Warsaw2004-08-251-21/+13
| | | | | | | | This patch includes test cases and documentation updates, as well as NEWS file updates. This patch also updates the sre modules so that they don't import the string module, breaking direct circular imports.
* Simple Optimizations:Raymond Hettinger2004-03-261-73/+92
| | | | | * Factor constant expressions out of loops. * Presize a list being grown to a known length.
* Whitespace normalization.Tim Peters2004-01-181-2/+2
|
* Implemented non-recursive SRE matching.Gustavo Niemeyer2003-10-171-1/+39
|
* Patch #681152: Support escaped Unicode characters in classes. Fixes #612074.Martin v. Löwis2003-04-191-1/+1
| | | | Will backport to 2.2.
* SF patch #720991 by Gary Herron:Guido van Rossum2003-04-141-1/+3
| | | | | | | A small fix for bug #545855 and Greg Chapman's addition of op code SRE_OP_MIN_REPEAT_ONE for eliminating recursion on simple uses of pattern '*?' on a long string.
* Replace boolean test with is None.Raymond Hettinger2002-06-021-2/+2
|
* SF 563203. Replaced 'has_key()' with 'in'.Raymond Hettinger2002-06-011-2/+2
|
* Partial introduction of bools where appropriate.Guido van Rossum2002-04-071-3/+3
|
* SF #515022 remove unused variableNeal Norwitz2002-02-111-1/+0
|
* bug #133283, #477728, #483789, #490573Fredrik Lundh2001-12-091-2/+2
| | | | | | | backed out of broken minimal repeat patch from July also fixed a couple of minor potential resource leaks in pattern_subx (Guido had already fixed the big one)
* Improved error msg when a symbolic group name is redefined. Added docsTim Peters2001-11-031-2/+4
| | | | | | and NEWS. Bugfix candidate? That's a dilemma for Anthony <wink>: /F did fix a longstanding bug here, but the fix can cause code to raise an exception that previously worked by accident.
* SF bug #476912: flag repeated use of the same groupname asFredrik Lundh2001-11-021-1/+3
| | | | the error it really is (and always has been)
* fixed #449964: sre.sub raises an exception if the template contains aFredrik Lundh2001-09-181-4/+4
| | | | | | \g<x> group reference followed by a character escape (also restructured a few things on the way to fixing #449000)
* Added docstrings by Neal Norwitz. This closes SF bug #450980.Fred Drake2001-09-041-0/+2
|
* sre 2.1b2 update:Fredrik Lundh2001-03-221-22/+41
| | | | | | - take locale into account for word boundary anchors (#410271) - restored 2.0's *? behaviour (#233283, #408936 and others) - speed up re.sub/re.subn
* detect attempts to repeat anchors (fixes bug #130748)Fredrik Lundh2001-02-181-0/+3
|
* - restored 1.5.2 compatibility (sorry, eric)Fredrik Lundh2001-02-181-22/+27
| | | | | - removed __all__ cruft from internal modules (sorry, skip) - don't assume ASCII for string escapes (sorry, per)
* bunch more __all__ listsSkip Montanaro2001-02-151-0/+3
| | | | | | also modified check_all function to suppress all warnings since they aren't relevant to what this test is doing (allows quiet checking of regsub, for instance)
* String method conversion.Eric S. Raymond2001-02-091-18/+12
|
* bumped SRE version number to 2.1. cleaned up and added 1.5.2Fredrik Lundh2001-01-161-11/+17
| | | | compatibility patches.
* SRE: stricter pattern syntax checking (covers parts of bug #115900)Fredrik Lundh2001-01-141-7/+17
|
* SRE fixes for 2.1 alpha:Fredrik Lundh2001-01-141-9/+9
| | | | | | | | | | -- added some more docstrings -- fixed typo in scanner class (#125531) -- the multiline flag (?m) should't affect the \Z operator (#127259) -- fixed non-greedy backtracking bug (#123769, #127259) -- added sre.DEBUG flag (currently dumps the parsed pattern structure) -- fixed a couple of glitches in groupdict (the #126587 memory leak had already been fixed by AMK)
* -- properly reset groups in findall (bug #117612)Fredrik Lundh2000-10-281-2/+12
| | | | | | | | -- fixed negative lookbehind to work correctly at the beginning of the target string (bug #117242) -- improved syntax check; you can no longer refer to a group inside itself (bug #110866)
* Fixed too ambitious "nothing to repeat" check. Closes bug #114033.Fredrik Lundh2000-10-071-2/+0
|
* SRE didn't handle character category followed by hyphen inside aFredrik Lundh2000-10-071-0/+2
| | | | | character class. Fix provided by Andrew Kuchling. Closes bug #116251.
* Recompile pattern if (?x) flag was found inside the pattern during theFredrik Lundh2000-10-031-0/+5
| | | | first scan. Closes bug #115040.
* - don't hang if group id is followed by whitespace (closes bug #114660)Fredrik Lundh2000-09-241-1/+1
|
* -- tightened up parsing of octal numbersFredrik Lundh2000-09-021-8/+8
| | | | | -- improved the SRE test harness: don't use asserts, test a few more things (including more boundary conditions)
* SourceForge patch 101396, by an anonymous friend.Tim Peters2000-09-021-1/+1
| | | | "sre_parse.py missing '7' in DIGITS"
* closes bug #112468 (and all the other bugs that surfaced whenFredrik Lundh2000-08-311-28/+47
| | | | I fixed the a bug in the regression test harness...)
* -- reset marks if repeat_one tail doesn't matchFredrik Lundh2000-08-071-4/+4
| | | | | | | (this should fix Sjoerd's xmllib problem) -- added skip field to INFO header -- changed compiler to generate charset INFO header -- changed trace messages to support post-mortem analysis
* final 0.9.8 updates:Fredrik Lundh2000-08-011-1/+1
| | | | | -- added REPEAT_ONE operator -- added ANY_ALL operator (used to represent "(?s).")