DEV Community

loading...

Discussion on: Daily Challenge #89 - Extract domain name from URL

larisho profile image
Gab

Unfortunately, I think the only way to improve on it is to use the list of all TLDs to find how much of the end of the domain is TLD.