110,534
社区成员
发帖
与我相关
我的任务
分享
MatchCollection mc = Regex.Matches(str, @"(?<=作者:<a\s+href="")http://blog\.sina\.com\.cn/[^""/]+(?="")", RegexOptions.IgnoreCase);
foreach (Match m in mc)
{
richTextBox2.Text += m.Value + "\n";
}
List<string> list = new List<string>();
MatchCollection mc = Regex.Matches(yourStr, @"(?<=href="")http://blog\.sina\.com\.cn/[^""/]+(?="")", RegexOptions.IgnoreCase);
foreach (Match m in mc)
{
if (!list.Contains(m.Value))
list.Add(m.Value);
}
foreach (string s in list)
richTextBox2.Text += s + "\n";
MatchCollection mc = Regex.Matches(str, @"(?<=href="")http://blog\.sina\.com\.cn/[^""/]+(?="")", RegexOptions.IgnoreCase);
foreach (Match m in mc)
{
richTextBox1.Text += m.Value + "\n";
}