Regular Expressions 101

Community Patterns

1...56789...178

Community Library Entry

3

Regular Expression
.NET 7.0 (C#)

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

Description

Match any layer bracket pair

Submitted by Yakumo Yukari - 3 years ago