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);
原文地址:https://www.cnblogs.com/ningkyolei/p/4623648.html