I have a regex that detect urls:
@"((http|ftp|https)\:\/\/)?([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:/~+#-]*[\w@?^=%&/~+#-])?";
I am using it with regex.replace to remove urls from text.
I do not want it to replace any word that starts with /images
for example if the text is "this is my text here is a link http://dfdf.com and my is /images/dd.gif" I need the http://dfdf.com replaces but not the /images/dd.gif
my regex replaces the dd.gif so I want to negate any word after images/
any idea how can I fix this ?