Python: Extract values between quotation marks of a string
Python Regular Expression: Exercise-38 with Solution
Write a Python program to extract values between quotation marks of a string.
import re text1 = '"Python", "PHP", "Java"' print(re.findall(r'"(.*?)"', text1))
['Python', 'PHP', 'Java']
Visualize Python code execution:
The following tool visualize what the computer is doing step-by-step as it executes the said program:
Python Code Editor:
Have another way to solve this solution? Contribute your code (and comments) through Disqus.
What is the difficulty level of this exercise?