The \G
modifier:
\G forces the pattern to only return matches that are part of a continuous chain of matches. From the first match each subsequent match must be preceded by a match.
However, in the python standard re
module, \G
is not an available anchor. Is there a way to convert what might have been done with a \G
into a python-friendly regex? What would be an example of a regex containing a \G
flag that could be re-written in a regex that would compile in python?