Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Python

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

Description

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

Submitted by Nic Roland - 9 years ago