summaryrefslogtreecommitdiffstats
path: root/Modules/sre_constants.h
Commit message (Collapse)AuthorAgeFilesLines
* bpo-31690: Allow the inline flags "a", "L", and "u" to be used as group ↵Serhiy Storchaka2017-10-241-23/+28
| | | | flags for RE. (#3885)
* bpo-30215: Make re.compile() locale agnostic. (#1361)Serhiy Storchaka2017-05-051-1/+4
| | | | | | Compiled regular expression objects with the re.LOCALE flag no longer depend on the locale at compile time. Only the locale at matching time affects the result of matching.
* Issue #17381: Fixed handling of case-insensitive ranges in regular expressions.Serhiy Storchaka2014-10-311-1/+2
| | | | Added new opcode RANGE_IGNORE.
* Issue #13592: Improved the repr for regular expression pattern objects.Serhiy Storchaka2013-11-231-0/+2
| | | | Based on patch by Hugo Lopes Tavares.
* Implemented non-recursive SRE matching.Gustavo Niemeyer2003-10-171-19/+20
|
* Fully support 32-bit codes. Enable BIGCHARSET in UCS-4 builds.Martin v. Löwis2003-04-191-1/+1
|
* SF patch #720991 by Gary Herron:Guido van Rossum2003-04-141-0/+1
| | | | | | | 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.
* added martin's BIGCHARSET patch to SRE 2.1.1. martin reports 2xFredrik Lundh2001-07-021-19/+20
| | | | speedups for certain unicode character ranges.
* sre 2.1b2 update:Fredrik Lundh2001-03-221-1/+5
| | | | | | - take locale into account for word boundary anchors (#410271) - restored 2.0's *? behaviour (#233283, #408936 and others) - speed up re.sub/re.subn
* added "magic" number to the _sre module, to avoid weird errors causedFredrik Lundh2001-01-151-0/+1
| | | | by compiler/engine mismatches
* SRE fixes for 2.1 alpha:Fredrik Lundh2001-01-141-5/+7
| | | | | | | | | | -- 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)
* final 0.9.8 updates:Fredrik Lundh2000-08-011-25/+26
| | | | | -- added REPEAT_ONE operator -- added ANY_ALL operator (used to represent "(?s).")
* SRE 0.9.8: passes the entire test suiteFredrik Lundh2000-08-011-18/+18
| | | | | | | | | -- reverted REPEAT operator to use "repeat context" strategy (from 0.8.X), but done right this time. -- got rid of backtracking stack; use nested SRE_MATCH calls instead (should probably put it back again in 0.9.9 ;-) -- properly reset state in scanner mode -- don't use aggressive inlining by default
* - actually enabled charset anchors in the engine (still notFredrik Lundh2000-07-021-15/+16
| | | | | | | | | | used by the code generator) - changed max repeat value in engine (to match earlier array fix) - added experimental "which part matched?" mechanism to sre; see http://hem.passagen.se/eff/2000_07_01_bot-archive.htm#416954 or python-dev for details.
* -- use charset bitmaps where appropriate. this gives a 5-10%Fredrik Lundh2000-07-021-17/+21
| | | | | | | | | speedup for some tests, including the python tokenizer. -- added support for an optional charset anchor to the engine (currently unused by the code generator). -- removed workaround for array module bug.
* - fixed lookahead assertions (#10, #11, #12)Fredrik Lundh2000-06-301-22/+35
| | | | - untabified sre_constants.py
* towards 1.6b1Fredrik Lundh2000-06-291-20/+28
|
* Fredrik Lundh: here's the 96.6% version of SREJeremy Hylton2000-06-011-1/+23
|
* Adding Fredrik Lundh's _sre.c module and its header files.Guido van Rossum2000-03-311-0/+27
NOTE: THIS IS VERY ROUGH ALPHA CODE!