62,073
社区成员
发帖
与我相关
我的任务
分享
Regex reg = new Regex(@"(?is)<div>\s*<a[^>]*>(.*?)<img[^>]*>\s*</a>\s*</div>\s*<div>(.*?)<img[^>]*>\s*</div>");
MatchCollection mc = reg.Matches(yourStr);
foreach (Match m in mc)
{
richTextBox2.Text += m.Groups[1].Value + "\n";
richTextBox2.Text += m.Groups[2].Value + "\n";
}