Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python get the elements between quotes in string

import re
foo = 'SetVariables "a" "b" "c" '
bar = re.findall('"([^"]*)"', foo)

print(bar)
### ['a", 'b', 'c']
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #elements #quotes #string
ADD COMMENT
Topic
Name
9+8 =