Hi,
See if following piece of code helps
string testing = "<img src="\"cid:tmpImage.gif\"">,cdefetfdgfdg ,ewrewrewr,<img src="\"cid:tmpImage1.gif\"">,<img src="\"cid:tmpImage2.gif\"">,<img src="\"cid:tmpImage3.gif\"">,<img src="\"cid:tmpImage4.gif\"">";
Regex regex = new Regex(@"(src([^>]+))");
MatchCollection cl = regex.Matches(testing);
foreach (Match match in cl)
{
Console.WriteLine(match.Value);
}
Its giving me output as
src="cid:tmpImage.gif"
src="cid:tmpImage1.gif"
src="cid:tmpImage2.gif"
src="cid:tmpImage3.gif"
src="cid:tmpImage4.gif"
Hope that serves the purpose. If it helps, mark the answer as solution and/or upvote.
Thanks
Milind