62,050
社区成员
发帖
与我相关
我的任务
分享
string pattern = @"(?i)http://.*?/(?!index|default)[^/\.]*\.html";
bool flag = Regex.IsMatch("http://www.baidu.com/index.html",pattern);
//false
flag = Regex.IsMatch("http://www.baidu.com/test.html", pattern);
//ture