Regular Expressions 101

Community Patterns

Match parenthesis

1

Regular Expression
Python

r"
\([^\)]*\)*
"
g

Description

Matches anything wrapped in parenthesis. Can handle nested and consecutive sets of parenthesis.

Submitted by Nic Roland - 8 years ago