Skip to content

Instantly share code, notes, and snippets.

@subtleGradient
Created August 4, 2008 14:10
(?x)
(?<one> # start of bracket 1
\( # match an opening angle bracket
(?:
[^\(\)]++ # one or more non angle brackets, non backtracking
|
\g<one> # recurse to bracket 1
)*
\) # match a closing angle bracket
) # end of bracket 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment