Answers for "how to get text in quotes in python"

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']
Posted by: Guest on December-02-2020

Code answers related to "how to get text in quotes in python"

Python Answers by Framework

Browse Popular Code Answers by Language