R

TestRegex

Duplicate subpattern group

(?|...)

Any subpatterns in (...) in such a group share the same number.

Examples

PCRE

Share & Embed

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

<!-- Embed Regex Token: (?|...) -->
<code class="regex-token">(?|...)</code> - Duplicate subpattern group
<small><a href="https://testregex.com/cheatsheet/duplicate-subpattern-group">See details</a></small>