Match nth subpattern
\g{n}This is an alternate syntax for \gn. It can be useful in a situation where a literal number needs to be matched immediately after a \gn in the regex.
Examples
PCRE
Share & Embed
Use this snippet to display this token on your own site.
<!-- Embed Regex Token: \g{n} -->
<code class="regex-token">\g{n}</code> - Match nth subpattern
<small><a href="https://testregex.com/cheatsheet/match-nth-subpattern-slash-gbrace-opennbrace-close">See details</a></small>