re: Daily Challenge #89 - Extract domain name from URL VIEW POST

FULL DISCUSSION
 

Python one-liner:

def domain_name(url):
    return url.split("/")[2].split(".")[-2]
code of conduct - report abuse