110,536
社区成员
发帖
与我相关
我的任务
分享
Regex reg = new Regex(@"(?is)<A\s+href=""/myhome\.html\?id=(?<id>\d+)"">(?<text>.*?)</A>");
Match m = reg.Match(yourStr);
if (m.Success)
{
richTextBox2.Text += m.Groups["id"].Value + "\n";
richTextBox2.Text += m.Groups["text"].Value + "\n";
}