Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import re
- text = input()
- while text:
- pattern = r"www\.([a-zA-z0-9-])+(\.[a-z]+)+"
- result = re.finditer(pattern, text)
- for i in result:
- print(i.group())
- text = input()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement