You are viewing a single comment's thread. Return to all comments →
import re is_domain = re.compile(r"https?://(www\.|ww2\.)?(([a-z0-9\-]+\.)+[a-z0-9\-]{2,})") domains = set([domain[1] for _ in range(int(input())) for domain in is_domain.findall(input())]) print(";".join(sorted(domains)))
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 →