how to check if an expression is between quotes python code example
Example 1: regex to get items between quotes
(["'])(?:(?=(\\?))\2.)*?\1
Example 2: python get the elements between quotes in string
import re
foo = 'SetVariables "a" "b" "c" '
bar = re.findall('"([^"]*)"', foo)
print(bar)
### ['a", 'b', 'c']