Jack,
This gives you back the domain name.
Dim myUri As New
Uri("http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemuriclasshosttopic.asp")
messagebox.show(myUri.Host)
I don't not know a method to strip a domainname to smaller parts. There are
all kind of domainnames you know. (2 dots, 3dots, 4dots)
I hope this helps,
Cor
"Jack" <jo***@webfoxmail.com> schreef in bericht
news:eV**************@TK2MSFTNGP15.phx.gbl...
Hello,
I need to get:
microsoft.com
From these possible string:
www.microsoft.com
http://www.microsoft.com
http://microsoft.com
microsoft.com
sql.microsoft.com
htttp://sql.microsoft.com
Thanks for any help,
Jack