Regular Expressions 101

Ignore Text in Quotes

Open Workspace
  • Python
  • Substitution
0

Regular Expression

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

Description

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

Submitted by Anonymous