R

TestRegex

Recurse nth relative subpattern

\g<+n>

Recursively matches the nth pattern ahead of the current position 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> - Recurse nth relative subpattern
<small><a href="https://testregex.com/cheatsheet/recurse-nth-relative-subpattern">See details</a></small>