Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
# re_two_matches.py
here2share
Feb 5th, 2019
340
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
# re_two_matches.py
import
re
zzz
=
[
"guru99 get"
,
"guru skip"
,
"guru99 give"
]
for
element
in
zzz:
z
=
re
.
match
(
"(g
\w
+)
\W
(g
\w
+)"
,
element
)
if
z:
print
(
(
z.
groups
(
)
)
)
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
56 min ago | 19.27 KB
Untitled
1 hour ago | 7.62 KB
Untitled
2 hours ago | 20.54 KB
Untitled
3 hours ago | 7.11 KB
Untitled
4 hours ago | 15.67 KB
Untitled
5 hours ago | 2.02 KB
Untitled
5 hours ago | 7.58 KB
Untitled
6 hours ago | 26.85 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!