Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
re_example
go6odn28
Feb 14th, 2024
259
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Python
0.16 KB
| None
|
0
0
raw
download
clone
embed
print
report
import
re
string
=
"a1a1a1b11b1c1cc2c2ytyty23"
pattern
=
r
"
\d
+"
print
(
re
.
findall
(
pattern
,
string
)
)
#['1', '1', '1', '11', '1', '1', '2', '2', '23']
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
✅ I earned $19000 with this method
5 min ago | 0.37 KB
Zoho 6 Problem
1 day ago | 23.61 KB
Basic port of Opera's tab traces for Viv...
JavaScript | 2 days ago | 2.19 KB
How To Earn Crypto - Nov 2026 Guide
2 days ago | 0.49 KB
Untitled
2 days ago | 0.47 KB
Basic error handling in Rust with Ok and Err(...
Rust | 3 days ago | 1.02 KB
Self, &self, &mut self, and self in R...
Rust | 3 days ago | 2.16 KB
MediaKnight Download Denied Page
3 days ago | 1.72 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!