Regular Expressions 101

Community Patterns

123...6

Match any layer bracket pair (.NET)

3

Regular Expression
.NET 7.0 (C#)

@"
\w+\([^()]*(((?'parenthesesPair'\()[^()]*)+((?'-parenthesesPair'\))[^()]*)+)*(?(parenthesesPair)(?!))\)
"
gm

Description

Loading markdown...
Submitted by Yakumo Yukari - 2 years ago