110,534
社区成员
发帖
与我相关
我的任务
分享
string input=@"<a href='articledetail.jsp?id=38242&typeid=33'>";
foreach (Match m in Regex.Matches(input, @"\d+", RegexOptions.None))
{
Response.Write(m.Value + "<br />"); //在webform里输出
}
@"<a href='articledetail.jsp?id=(\d+)&typeid=(\d+)'>(\d+)</a>"
m.Groups[1].Value;
m.Groups[2].Value;
m.Groups[3].Value;