Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
python re findall failing
kabads
Dec 16th, 2023
159
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.17 KB
| None
|
0
0
raw
download
clone
embed
print
report
>>> import re
>>> searchstr = re.compile(r'one|two|three|four|five|six|seven|eight|nine')
>>> mystring = "onetwonej"
>>> re.findall(searchstr, mystring)
['one', 'two']
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Crypto admin access
43 min ago | 0.80 KB
+12,000$ in 2 days
CSS | 43 min ago | 0.80 KB
Documents
43 min ago | 0.80 KB
Free Crypto Method by ONETECH
CSS | 43 min ago | 0.80 KB
+12,000$ in 2 days
CSS | 1 hour ago | 0.80 KB
Crypto admin access
1 hour ago | 0.80 KB
The Road Not Taken
3 hours ago | 0.79 KB
DRV8874Driver (AI coded)
Python | 13 hours ago | 7.14 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!