日期:2014-05-17 浏览次数:20984 次
string str = @"asdfxxxxxPages: 1/50 Go "; str = System.Text.RegularExpressions.Regex.Match(str, @"(?<=Pages:\s*\d+/)\d+(?=\s*|( ))").Value; Response.Write(str);
------解决方案--------------------
string str = Regex.Match("asdfxxxxxPages: 1/50 Go",@"(?<=\d+?/)\d+?(?=\s+| )").Value; //50