this:
An anchor \ G matches the position at which the previous match ended. During the first match attempt, \ G matches the beginning of a line in \ A method.
Now, to answer your question: in the second example, which does not produce results, \ G cannot match the beginning of the line, because you are first looking for two digits and without this initial match, \ G will not match anything else.
source
share