Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
yourtext(?=(?:[^'\"]*(?:'|\")[^'\"]*(?:'|\"))*[^'\"]*$)
"
gm

Description

It will only pick thet matching text outside the quotes i.e ', "

Submitted by anonymous - 4 years ago