Until Python 3.10, you had to use alternatives like the third-party regex module (https://pypi.org/project/regex/) for possessive quantifiers and atomic grouping. The `re` module now supports these features from Python 3.11 version. Greedy and non-greedy quantifiers will backtrack to help the overall pattern to succeed. Atomic grouping helps you isolate a portion of the pattern from further backtracking.
See also my "Python re(gex)?" ebook: https://github.com/learnbyexample/py_...
Nesta página do site você pode assistir ao vídeo on-line Python tip 26: atomic grouping duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário learnbyexample 11 Abril 2023, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 338 vezes e gostou 7 espectadores. Boa visualização!