]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-433030: Add support of atomic grouping in regular expressions (GH-31982)
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 21 Mar 2022 16:28:22 +0000 (18:28 +0200)
committerGitHub <noreply@github.com>
Mon, 21 Mar 2022 16:28:22 +0000 (18:28 +0200)
commit345b390ed69f36681dbc41187bc8f49cd9135b54
tree31ce6451bed718405b29bdb32c7eb4ff96fe5697
parent2bde6827ea4f136297b2d882480b981ff26262b6
bpo-433030: Add support of atomic grouping in regular expressions (GH-31982)

* 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>
Doc/library/re.rst
Doc/whatsnew/3.11.rst
Lib/sre_compile.py
Lib/sre_constants.py
Lib/sre_parse.py
Lib/test/test_re.py
Misc/ACKS
Misc/NEWS.d/next/Library/2022-03-19-08-42-57.bpo-433030.UTwRX7.rst [new file with mode: 0644]
Modules/_sre.c
Modules/sre_constants.h
Modules/sre_lib.h