Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Find variable names in sentence
DiYane
Sep 27th, 2023
1,003
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Python
0.13 KB
| None
|
0
0
raw
download
clone
embed
print
report
import
re
some_string
=
input
(
)
pattern
=
r
'
\b
_([A-Za-z0-9]+)
\b
'
matches
=
re
.
findall
(
pattern
,
some_string
)
print
(
','
.
join
(
matches
)
)
Tags:
python
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Binance and Changelly Hacked
35 min ago | 0.43 KB
Earn +12,000$ in 2 days
CSS | 35 min ago | 0.72 KB
Free Money Glitch
CSS | 35 min ago | 0.72 KB
Crypto site - node admin access
35 min ago | 0.43 KB
Nine Domains for Sale
8 hours ago | 0.60 KB
How to Reorder Pages
Python | 1 day ago | 7.77 KB
How to Extract Pages from PDF
Python | 1 day ago | 8.76 KB
How to Add Header or Footer
Python | 1 day ago | 11.39 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!