匹配多个组的C#正则表达式
我在标签中有一些文本,比如匹配多个组的C#正则表达式,c#,regex,match,C#,Regex,Match,我在标签中有一些文本,比如 <p>This is text a</p><p>This is text ended without p</a> 我已经解决了这个问题,似乎我需要使用MatchCollection而不是Match const string patternDesp = @"<p>(.+?)(</p>|</a>)"; </a>
<p>This is text a</p><p>This is text ended without p</a>
我已经解决了这个问题,似乎我需要使用
MatchCollection
而不是Match
const string patternDesp = @"<p>(.+?)(</p>|</a>)";
</a>