R
Ryan Chan
Hello,
I want to get the domain from uri, e.g.
http://www.example.com/index.html => example.com
http://foo.example.com/index.html => example.com
http://foo.example.co.uk/index.html => example.co.uk
http://foo.example.company.com => company.com
http://foo.example.company.com.hk => company.com.hk
It seems that URI module does not have this feature yet, any
recommendation?
Thanks.
I want to get the domain from uri, e.g.
http://www.example.com/index.html => example.com
http://foo.example.com/index.html => example.com
http://foo.example.co.uk/index.html => example.co.uk
http://foo.example.company.com => company.com
http://foo.example.company.com.hk => company.com.hk
It seems that URI module does not have this feature yet, any
recommendation?
Thanks.