Hi
Could anyone give me some pointers on how to remove subdomains from a string?
For example:
Essentially, it just needs to strip off the subdomains and produce the root domain if not already present.
Cheers
akadeco
Could anyone give me some pointers on how to remove subdomains from a string?
For example:
- If the string was bytes.com, it would stay bytes.com
- If it was subdomain.bytes .com, it would become bytes.com
- If it was subsubdomain.su bdomain.bytes.c om, it would become bytes.com
Essentially, it just needs to strip off the subdomains and produce the root domain if not already present.
Cheers
akadeco
Comment