I want to locate all image tags in my html with src not containing http://
and prepend http://
to the src
attribute.
I have got the regex to find all img tags not starting with http://. I'm having some trouble appdening http:// to the src attribute alone. How can I achieve this using regex replace.
<img [^<]*src="(?!http://)(?<source>[^"]*)"[^<]*/>
Source will contain the src value. I just need it to say $2 = "http://" + $2
. How can I write this in c# code.