R

TestRegex

Start of match

\G

This will match at the position the previous successful match ended. Useful with the /g flag.

Examples

PCRE

Share & Embed

Use this snippet to display this token on your own site.

<!-- Embed Regex Token: \G -->
<code class="regex-token">\G</code> - Start of match
<small><a href="https://testregex.com/cheatsheet/start-of-match">See details</a></small>