Python 3.11: possessive quantifiers and atomic grouping added to re module
Quoting from What's New In Python 3.11:
Atomic grouping (
(?>...)
) and possessive quantifiers (*+
,++
,?+
,{m,n}+
) are now supported in regular expressions. (Contributed by Jeffrey C. Jacobs and Serhiy Storchaka in bpo-433030.)
Poster created using Canva
If you are not familiar with regular expressions, see my Understanding Python re(gex)? ebook to get started.