Python tip 22: possessive quantifiers

Publicado el: 18 enero 2023
en el canal de: learnbyexample
220
2

Until Python 3.10, you had to use alternatives like the third-party regex module (https://pypi.org/project/regex/) for possessive quantifiers. The `re` module supports possessive quantifiers from Python 3.11 version. Greedy quantifiers will match as much as possible but will backtrack to help the overall pattern to succeed. Possessive quantifiers behave like greedy but won't backtrack.


See also my "Python re(gex)?" ebook: https://github.com/learnbyexample/py_...


En esta página del sitio puede ver el video en línea Python tip 22: possessive quantifiers de Duración hora minuto segunda en buena calidad , que subió el usuario learnbyexample 18 enero 2023, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 220 veces y le gustó 2 a los espectadores. Disfruta viendo!