Advertisement
here2share

# list_all_quoted.py

Dec 13th, 2019
332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. # list_all_quoted.py
  2.  
  3. s = '''outside double quotes "1: in" abc: out ,"2: in" xyz: out'''
  4. print(s.split('"')[1::2])
  5.  
  6. # ... or...
  7.  
  8. import re
  9. print(re.findall('"(.*?)"', s))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement