I'm looking for a quick way of getting parts of a domain name:
Example: http://www.mydomain.com/something/hello.html
I need to get the "mydomain.com" part and nothing else.
But, the url may change sometime, for example:
http://mydomain.com/something/hello.html
http://www.mydomain.com/hello.html
Any help would be great,
Thanks!