R

TestRegex

Match subpattern `name`

(?P=name)

Matches the text matched by a previously named capture group.

Examples

PCRE PYTHON

Share & Embed

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

<!-- Embed Regex Token: (?P=name) -->
<code class="regex-token">(?P=name)</code> - Match subpattern `name`
<small><a href="https://testregex.com/cheatsheet/match-subpattern-name-paren-openquestionpnameparen-close">See details</a></small>