Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-47152: Convert the re module into a package (GH-32177) | Serhiy Storchaka | 2022-04-02 | 1 | -1078/+6 |
| | | | The sre_* modules are now deprecated. | ||||
* | bpo-433030: Add support of atomic grouping in regular expressions (GH-31982) | Serhiy Storchaka | 2022-03-21 | 1 | -6/+26 |
| | | | | | | | | * Atomic grouping: (?>...). * Possessive quantifiers: x++, x*+, x?+, x{m,n}+. Equivalent to (?>x+), (?>x*), (?>x?), (?>x{m,n}). Co-authored-by: Jeffrey C. Jacobs <timehorse@users.sourceforge.net> | ||||
* | bpo-47066: Convert a warning about flags not at the start of the regular ↵ | Serhiy Storchaka | 2022-03-19 | 1 | -10/+3 |
| | | | | expression into error (GH-31994) | ||||
* | bpo-39394: Improve warning message in the re module (GH-31988) | Serhiy Storchaka | 2022-03-19 | 1 | -1/+3 |
| | | | | A warning about inline flags not at the start of the regular expression now contains the position of the flag. | ||||
* | bpo-37723: Fix performance regression on regular expression parsing. (GH-15030) | yannvgn | 2019-07-31 | 1 | -7/+1 |
| | | | | Improve performance of sre_parse._uniq function. | ||||
* | bpo-34681: Rename class Pattern in sre_parse to State. (GH-9310) | Serhiy Storchaka | 2018-09-18 | 1 | -20/+20 |
| | | | Also rename corresponding attributes, parameters and variables. | ||||
* | bpo-34605: Avoid master/slave terms (GH-9101) | Victor Stinner | 2018-09-07 | 1 | -1/+1 |
| | | | | | | | * Replace "master process" with "parent process" * Replace "master option mappings" with "main option mappings" * Replace "master pattern object" with "main pattern object" * ssl: replace "master" with "server" * And some other similar changes | ||||
* | bpo-30688: Import unicodedata only when needed. (GH-5606) | Zhou Fangyi | 2018-02-10 | 1 | -1/+2 |
| | | | | | | | | | | | | Importing unicodedata in sre_parse leads to failure in compilation. unicodedata is unused during compilation, and is not compiled when this file is imported. The error occurs when generating posix variables, pprint is required. The dependency chain goes on like this: sysconfig -> pprint -> re -> sre_compile -> sre_parse (this file) This commits fixes compilation issues introduced by 2272cec13b53c405d86c45d404f035f201c0baef. (Issue 30688, GH-5588) | ||||
* | bpo-30688: Support \N{name} escapes in re patterns. (GH-5588) | Serhiy Storchaka | 2018-02-09 | 1 | -7/+30 |
| | | | Co-authored-by: Jonathan Eunice <jonathan.eunice@gmail.com> | ||||
* | bpo-30349: Raise FutureWarning for nested sets and set operations (#1553) | Serhiy Storchaka | 2017-11-16 | 1 | -0/+24 |
| | | | | in regular expressions. | ||||
* | bpo-31690: Allow the inline flags "a", "L", and "u" to be used as group ↵ | Serhiy Storchaka | 2017-10-24 | 1 | -4/+20 |
| | | | | flags for RE. (#3885) | ||||
* | bpo-30605: Fix compiling binary regexs with BytesWarnings enabled. (#2016) | Roy Williams | 2017-06-10 | 1 | -1/+1 |
| | | | | Running our unit tests with `-bb` enabled triggered this failure. | ||||
* | bpo-30375: Correct the stacklevel of regex compiling warnings. (#1595) | Serhiy Storchaka | 2017-05-16 | 1 | -10/+11 |
| | | | | | | Warnings emitted when compile a regular expression now always point to the line in the user code. Previously they could point into inners of the re module if emitted from inside of groups or conditionals. | ||||
* | bpo-30340: Enhanced regular expressions optimization. (#1542) | Serhiy Storchaka | 2017-05-14 | 1 | -35/+70 |
| | | | | This increased the performance of matching some patterns up to 25 times. | ||||
* | bpo-30298: Weaken the condition of deprecation warnings for inline ↵ | Serhiy Storchaka | 2017-05-10 | 1 | -7/+5 |
| | | | | | | | | modifiers. (#1490) Now allowed several subsequential inline modifiers at the start of the pattern (e.g. '(?i)(?s)...'). In verbose mode whitespaces and comments now are allowed before and between inline modifiers (e.g. '(?x) (?i) (?s)...'). | ||||
* | Issue #25953: re.sub() now raises an error for invalid numerical group | Serhiy Storchaka | 2016-10-23 | 1 | -8/+10 |
| | | | | | | | reference in replacement template even if the pattern is not found in the string. Error message for invalid group reference now includes the group index and the position of the reference. Based on patch by SilentGhost. | ||||
* | Issue #22493: Warning message emitted by using inline flags in the middle of | Serhiy Storchaka | 2016-09-16 | 1 | -2/+7 |
| | | | | | regular expression now contains a (truncated) regex pattern. Patch by Tim Graham. | ||||
* | Issue #22493: Inline flags now should be used only at the start of the | Serhiy Storchaka | 2016-09-11 | 1 | -0/+8 |
| | | | | | regular expression. Deprecation warning is emitted if uses them in the middle of the regular expression. | ||||
* | Issue #28070: Fixed parsing inline verbose flag in regular expressions. | Serhiy Storchaka | 2016-09-10 | 1 | -0/+1 |
| | |||||
* | Issue #433028: Added support of modifier spans in regular expressions. | Serhiy Storchaka | 2016-09-09 | 1 | -30/+84 |
| | |||||
* | Issue #27030: Unknown escapes consisting of ``'\'`` and ASCII letter in | Serhiy Storchaka | 2016-06-11 | 1 | -44/+5 |
| | | | | regular expressions now are errors. | ||||
* | Issue #26475: Fixed debugging output for regular expressions with the (?x) flag. | Serhiy Storchaka | 2016-03-06 | 1 | -3/+3 |
| | |||||
* | Issue #25554: Got rid of circular references in regular expression parsing. | Serhiy Storchaka | 2015-11-05 | 1 | -6/+6 |
| | |||||
* | Issue #24580: Symbolic group references to open group in re patterns now are | Serhiy Storchaka | 2015-07-18 | 1 | -0/+3 |
| | | | | explicitly forbidden as well as numeric group references. | ||||
* | Issue #14260: The groupindex attribute of regular expression pattern object | Serhiy Storchaka | 2015-03-29 | 1 | -1/+2 |
| | | | | now is non-modifiable mapping. | ||||
* | Issue #22364: Improved some re error messages using regex for hints. | Serhiy Storchaka | 2015-03-25 | 1 | -115/+112 |
| | |||||
* | Fixed using deprecated escaping in regular expression in _strptime.py ↵ | Serhiy Storchaka | 2015-03-24 | 1 | -1/+1 |
| | | | | (issue23622). | ||||
* | Issue #23622: Unknown escapes in regular expressions that consist of ``'\'`` | Serhiy Storchaka | 2015-03-24 | 1 | -1/+13 |
| | | | | | and ASCII letter now raise a deprecation warning and will be forbidden in Python 3.6. | ||||
* | Issues #814253, #9179: Group references and conditional group references now | Serhiy Storchaka | 2015-02-21 | 1 | -9/+42 |
| | | | | work in lookbehind assertions in regular expressions. | ||||
* | Issue #21032: Deprecated the use of re.LOCALE flag with str patterns or | Serhiy Storchaka | 2014-12-01 | 1 | -0/+10 |
| | | | | re.ASCII. It was newer worked. | ||||
* | merge 3.4 (#9179) | Benjamin Peterson | 2014-11-30 | 1 | -24/+9 |
|\ | |||||
| * | backout 9fcf4008b626 (#9179) for further consideration | Benjamin Peterson | 2014-11-30 | 1 | -24/+9 |
| | | |||||
* | | Minor code clean up and improvements in the re module. | Serhiy Storchaka | 2014-11-11 | 1 | -4/+4 |
| | | |||||
* | | Fixed error position for the backslash at the end of regex pattern. | Serhiy Storchaka | 2014-11-10 | 1 | -1/+2 |
| | | |||||
* | | Fixed AttributeError when the regular expression starts from illegal escape. | Serhiy Storchaka | 2014-11-10 | 1 | -0/+1 |
| | | |||||
* | | Issue #22578: Added attributes to the re.error class. | Serhiy Storchaka | 2014-11-10 | 1 | -59/+82 |
| | | |||||
* | | Merge heads | Serhiy Storchaka | 2014-11-10 | 1 | -2/+2 |
|\ \ | |||||
| * | | Issue #22823: Use set literals instead of creating a set from a list | Raymond Hettinger | 2014-11-09 | 1 | -2/+2 |
| | | | |||||
* | | | Issue #22434: Constants in sre_constants are now named constants (enum-like). | Serhiy Storchaka | 2014-11-09 | 1 | -5/+4 |
|/ / | |||||
* | | Issues #814253, #9179: Group references and conditional group references now | Serhiy Storchaka | 2014-11-07 | 1 | -9/+24 |
|\ \ | |/ | | | | | work in lookbehind assertions in regular expressions. | ||||
| * | Issues #814253, #9179: Group references and conditional group references now | Serhiy Storchaka | 2014-11-07 | 1 | -9/+24 |
| | | | | | | | | work in lookbehind assertions in regular expressions. | ||||
* | | Issue #19380: Optimized parsing of regular expressions. | Serhiy Storchaka | 2014-10-10 | 1 | -149/+119 |
| | | |||||
* | | Issue 1519638: Now unmatched groups are replaced with empty strings in re.sub() | Serhiy Storchaka | 2014-10-10 | 1 | -5/+3 |
| | | | | | | | | and re.subn(). | ||||
* | | Issue #22437: Number of capturing groups in regular expression is no longer | Serhiy Storchaka | 2014-09-29 | 1 | -0/+10 |
| | | | | | | | | limited by 100. | ||||
* | | Issue #22362: Forbidden ambiguous octal escapes out of range 0-0o377 in | Serhiy Storchaka | 2014-09-23 | 1 | -4/+16 |
|/ | | | | regular expressions. | ||||
* | Issue #22423: Fixed debugging output of the GROUPREF_EXISTS opcode in the re | Serhiy Storchaka | 2014-09-21 | 1 | -16/+28 |
| | | | | module. | ||||
* | Issue #8343: Named group error msgs did not show the group name. | Raymond Hettinger | 2014-06-23 | 1 | -3/+6 |
| | |||||
* | Issue #20976: pyflakes: Remove unused imports | Victor Stinner | 2014-03-20 | 1 | -2/+0 |
| | |||||
* | Issue #19365: Optimized the parsing of long replacement string in re.sub*() | Serhiy Storchaka | 2013-10-23 | 1 | -44/+30 |
| | | | | functions. | ||||
* | Issue #18647: Correctly bound calculated min/max width of a subexpression. | Serhiy Storchaka | 2013-08-19 | 1 | -4/+4 |
| | | | | | Now max width is MAXREPEAT on 32- and 64-bit platforms when one of subexpressions is unbounded repetition. |