62,047
社区成员
发帖
与我相关
我的任务
分享
string lookFor = @"(?is)^(http://)?localhost:8080/default\.aspx\?id=([0-9]*)$";
string requestedPath = "http://localhost:8080/default.aspx?id=122";
Regex re = new Regex(lookFor);
Match mc = re.Match(requestedPath);
Response.Write(mc.Success);
//True