Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
\w+(?=\s*\([-+]\))
"
gm

Description

Words before (-) or (+)

Submitted by anonymous - 6 years ago