Reputation: 3795
I have this Regex expression
UriPatternToMatch= new Regex(@"(href|src)=""[\d\w\/:#@%;$\(\)~_\?\+\-=\\\.&]*",
RegexOptions.Compiled | RegexOptions.IgnoreCase)
This is working fine to pickup all URLS including http,ftp and others , but it picks up text within "<"
special characters as URL too
for example it will wrongly pick up the text below as a URL too ( adding a photo instead of text below)
I believe something like ^< is what is needed , but where do I add it ?
Thanks
Upvotes: 1
Views: 86