Advertisement
pacho_the_python

Untitled

Mar 22nd, 2022
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. import re
  2.  
  3. text = input()
  4.  
  5. while text:
  6.  
  7.     pattern = r"www\.([a-zA-z0-9-])+(\.[a-z]+)+"
  8.  
  9.     result = re.finditer(pattern, text)
  10.  
  11.     for i in result:
  12.         print(i.group())
  13.     text = input()
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement