Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
\(((?:[^\(\)]++|(?R))*)\)
/
g
Input 1
1
New
a(bc)de(fg)h a(bcd(ef)g)h a(bcd(e(f(g(h)))))ij(kl)n(o(qr)p)(s)(tuvw)(((x)y)z)
Extraction
a(bc)de(fg)h a(bcd(ef)g)h a(bcd(e(f(g(h)))))ij(kl)n(o(qr)p)(s)(tuvw)(((x)y)z)