Forum Moderators: open
Can any body know regular expression to remove all the subdomains from a url to leave only the domain name. e.g.
[rss.abc.def.SiteName.com.edu.au...] <after applying regex leave>
SiteName.com.edu.au
Please note that in above example there are 3 subdomains, but this is not fixed. The domains could be anything from 0 to more.
Or some function that would do the job.(like Uri.DnsSafeHost, but this return 'rss.abc.def.SiteName.com.edu.au')
Thanks for help...