This comment is hidden because it contains spoiler information about the solution
Agreed, and I think another interesting case will be 'https://www.org' from the World Wide Web Consortium
Also thought of this approach until I realised that the World Wide Web Consortium is owner of 'https://www.org'. Your code will return the top level domain instead of the domain.
Loading collection data...
This comment is hidden because it contains spoiler information about the solution
Agreed, and I think another interesting case will be 'https://www.org' from the World Wide Web Consortium
Also thought of this approach until I realised that the World Wide Web Consortium is owner of 'https://www.org'. Your code will return the top level domain instead of the domain.