using System;
using System.Text.RegularExpressions;         string str = ".........." Regex re = new Regex(@"src\s*=\s*(?:([""'])(?<src>[^""']+)\1|(?<src>[^\s>]+))", RegexOptions.IgnoreCase | RegexOptions.Singleline); MatchCollection mc = re.Matches(str);
foreach (Match m in mc)
{
Console.WriteLine(m.Groups["src"].Value);
}