7.23. Regex Atomic Group
Catch expression results
7.23.1. SetUp
>>> import re
7.23.2. Atomic Grouping
Since Python 3.11
Atomic grouping
((?>...))and possessive quantifiers (*+,++,?+,{m,n}+) are now supported in regular expressions.https://www.regular-expressions.info/atomic.html
https://github.com/python/cpython/issues/34627