I need to Detect the any Url(with or without http,https,www...) in the text by regex on c# In any case, I want to Detect the domain name or url
Please help me
Sample :
google.com
http://google.com
http://www.gooogle.com
gooogle . com
sample regex :
(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z0-9][a-z0-9-]{0,61}[a-z0-9]"
([\w\-_]+(?:(?:\.[\w\-_]+)+))([\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])?
The above code examples can't detect gooogle . com