Community Patterns

Community Library Entry

0

Regular Expression
Created·2016-11-25 01:36
Flavor·PCRE (Legacy)

/
^<()(?R){2}>\z|\1\Q^<()(?R){2}>\z|\1\Q
/
Open regex in editor

Description

It matches and only matches this regex, including the delimiters. It could be 4 bytes shorter if <> are used as the delimiters instead. From Programming Puzzles & Code Golf.

Submitted by jimmy23013