Created
August 4, 2008 14:10
-
-
Save subtleGradient/3895 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(?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