日期:2014-05-17  浏览次数:20370 次

麻烦写个正则
/html/12175/info_show_12175250.html

我要截取 12175250,就是info_show_与 .html之间的数字

------解决方案--------------------
(?is)(?<=info_show_)\d+(?=\.html)
------解决方案--------------------
string value = Regex.Match(@"/html/12175/info_show_12175250.html", @"info_show_(\d+)\.html").Groups[1].Value;
------解决方案--------------------
		string s = "/html/12175/info_show_12175250.html";
string r = Regex.Match(s, @"(?i)/info_show_(\d+)\.html").Groups[1].Value;
Response.Write(r);