C#正则表达式匹配双引号

html:

<img class="bubble large"     src="/images/hero-logos/cog.svg" width="90%" />

 

C#:

var aRegexText = "<img.*src=\\\".*?\\\".*/>";
Regex aRegex = new Regex(aRegexText, RegexOptions.IgnoreCase);
MatchCollection aMatchCollection = aRegex.Matches(aHtml);

 

posted @ 2015-07-06 10:19  泪已凝  阅读(2939)  评论(0编辑  收藏  举报