Community Patterns

Community Library Entry

3

Regular Expression
Created·2022-03-10 03:13
Flavor·.NET 7.0 (C#)

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

Description

Match any layer bracket pair

Submitted by Yakumo Yukari