how to get all the values in the double quotation in python regex code example
Example 1: python get the elements between quotes in string
import re
foo = 'SetVariables "a" "b" "c" '
bar = re.findall('"([^"]*)"', foo)
print(bar)
### ['a", 'b', 'c']
Example 2: python regex inside quotes
"(?:\\.|[^"\\])*"
" # Match a quote.
(?: # Either match...
\\. # an escaped character
| # or
[^"\\] # any character except quote or backslash.
)* # Repeat any number of times.
" # Match another quote.