Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import re
- pattern = r"(www.[A-Za-z0-9?\-?]+(\.[a-z]+)+)"
- while True:
- text = input()
- if not text:
- break
- matches = re.findall(pattern, text)
- if matches:
- for match in matches:
- print(match[0])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement