日期:2014-05-18  浏览次数:20435 次

这个正则如何修改?
Regex   re   =   new   Regex(@ " <img   src=([ " " ']?)(? <scr> [^> ]*)(\1)[\s]*> ",   RegexOptions.None);
                        MatchCollection   mc   =   re.Matches(strText);
                        foreach   (Match   ma   in   mc)
                        {
                                strSrc   +=   ma.Groups[ "scr "].Value   +   "| ";
                        }
如何能区别大定的IMG如 <IMG   SRC= " "   ALT= " "> 等

------解决方案--------------------
Regex re = new Regex(@ " <img src=([ " " ']?)(? <scr> [^> ]*)(\1)[\s]*> ", RegexOptions.IgnoreCase);