Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 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
Advertisement