111,126
社区成员
发帖
与我相关
我的任务
分享MatchCollection mTr = Regex.Matches(yourStr, @"<tr[^>]*>(?:(?!</?tr>)[\s\S])*</tr>", RegexOptions.IgnoreCase);
foreach (Match mr in mTr)
{
MatchCollection mTd = Regex.Matches(mr.Value, @"(?<=<td[^>]*>)[^>]*(?=</td>)", RegexOptions.IgnoreCase);
foreach (Match md in mTd)
{
richTextBox2.Text += md.Value + "\n";
}
}
<td>([^<]*)</td>