Regular Expressions 101

Sponsors

Library entries

Match any layer bracket pair (.NET)

Vote

3

Regular Expression
dotnet

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

Description

Loading markdown...
Submitted by Yakumo Yukari - a year ago