This question has answer in other languages/platforms but I couldn\'t find a robust solution in C#. Here I\'m looking for the part of URL which we use in
C#
if you need to domain name then you can use URi.hostadress in .net
if you need the url from content then you need to parse them using regex.