I have special case where I need to replace string
(src="cid:image001.png@01D081C1.C5908B40")
with the following
(src="\\resources\\images\\image001.png")
with in the given text.
It should replace in all occurrences where ever it appears in given text.
I tried like this but its not working as expected.
fileName ="image001.png";
Regex.Replace(body, "[src=\"cid:" + fileName + "@](*)[\"]", "src=\"\\Resources\\Email\\" + emailID + "\\" + fileName + "\"");