Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
# list_all_quoted.py
here2share
Dec 13th, 2019
407
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Python
0.17 KB
| None
|
0
0
raw
download
clone
embed
print
report
# 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
Public Pastes
Untitled
1 hour ago | 13.98 KB
Untitled
3 hours ago | 12.49 KB
Untitled
5 hours ago | 12.40 KB
programacion_algoritmos_flashcards.tsv
6 hours ago | 2.67 KB
Untitled
7 hours ago | 17.13 KB
Untitled
9 hours ago | 18.40 KB
Untitled
11 hours ago | 17.70 KB
Untitled
13 hours ago | 16.97 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!