Regular Expressions 101

Community Patterns

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