Regular Expressions 101

Community Patterns

Ignore Text in Quotes

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