programming-examples/python/Regular_Expression/Extract values between quotation marks of a string.py

3 lines
87 B
Python
Raw Normal View History

2019-11-15 12:59:38 +01:00
import re
text1 = '"Python", "PHP", "Java"'
print(re.findall(r'"(.*?)"', text1))