I want to get domain name without the "http" and "www".
For example:
https://www.google.com => google.com
http://www.google.com => google.com
www.google.com => google.com
Attempts made:
Dim myUri As New Uri(url)
Dim host = myUri.Host
Dim host1 = myUri.AbsolutePath
Dim host2 = myUri.AbsoluteUri
Dim host3 = myUri.Authority
Dim host4 = myUri.DnsSafeHost
Dim host5 = myUri.Fragment
Dim host6 = myUri.HostNameType
None of this works for me. Can some one guide me how to achieve above in C# or VB.Net (preferrable VB.Net)