R

TestRegex

Named capturing group

(?P<name>...)

This capturing group can be referred to using the given name instead of a number.

Examples

PCRE PYTHON JAVASCRIPT

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> - Named capturing group
<small><a href="https://testregex.com/cheatsheet/named-capturing-group">See details</a></small>