You are viewing a single comment's thread. Return to all comments →
Python 3
import re, sys n = int(input()) html = sys.stdin.read() pattern = r'https?://(www\.|ww2\.)?([a-z0-9\-]+\.[\.a-z0-9\-]+)' matches = re.findall(pattern, html) st = set() for match in matches: st.add(match[1]) print(";".join(sorted(list(st))))
Seems like cookies are disabled on this browser, please enable them to open this website
Detect the Domain Name
You are viewing a single comment's thread. Return to all comments →
Python 3