R

TestRegex

Match subpattern `name`

\k<name>

Matches the text matched by a previously named capture group.

Examples

PCRE

Share & Embed

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

<!-- Embed Regex Token: \k<name> -->
<code class="regex-token">\k<name></code> - Match subpattern `name`
<small><a href="https://testregex.com/cheatsheet/match-subpattern-name">See details</a></small>