[Python-Dev] \G (match last position) regex operator non-existant in python?

Jakub Wilk jwilk at jwilk.net
Sun Oct 29 14:41:00 EDT 2017


* Guido van Rossum <guido at python.org>, 2017-10-28, 14:05:
>even if we outright switched there would *still* be two versions, 
>because regex itself has an internal versioning scheme where V0 claims 
>to be strictly compatible with re and V1 explicitly changes the 
>matching rules in some cases. (I don't know if this means that you have 
>to request V1 to use \G though.)

No, \G is available in the V0 mode.

-- 
Jakub Wilk


More information about the Python-Dev mailing list