PublicSuffix can parse and decompose a domain name into top level domain, domain and subdomains.
Simone Carletti
February 1, 2014 2:09pm
MIT