URL extraction for hostname, domain, subdomain and tld in Swift
How difficult can it be to parse an HTTP link to identify and extract individual components like its subdomain or top-level domain?
Giving the example http://super.duper.domain.co.uk how would you know that super.duper is the subdomain and co.uk is ...
blog.eidinger.info2 min read