Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # list_all_quoted.py
- s = '''outside double quotes "1: in" abc: out ,"2: in" xyz: out'''
- print(s.split('"')[1::2])
- # ... or...
- import re
- print(re.findall('"(.*?)"', s))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement