var rowHtml = "<div class=\"container\"><div class=\"title dottedline\">查询结果</div></div><div class=\"container\"><table class=\"gridtable\"><tr><th>序号</th><th>名称</th><th>注册币种</th><th>成立日期</th><th>注册资本</th><th>统一社会信用代码</th><th>持股占比</th><th>投资类型描述</th><th>是否上市</th><th>是否是受益人</th><th>受益人类型</th><th>职务</th></tr></table></div>"; if (!string.IsNullOrEmpty(rowHtml)) { var regex = new Regex(@"<table.*?>[\s\S]*?<\/table>"); var mc = regex.Matches(rowHtml); var regex1 = new Regex(@"<table.*?>.*?</table>"); var mc1 = regex1.Matches(rowHtml); Regex reg = new Regex(@"(?<=<td>)(.*?)(?=</td>)", RegexOptions.IgnoreCase);//[^(<td>))] var mc3 = reg.Matches(rowHtml); }