62,268
社区成员
发帖
与我相关
我的任务
分享 string s = @"F:\wwwroot\admin\upload\2012060615160327327.png";
string r = Regex.Match(s, @"(?<=\\[^\\]+)\\.*").Value;
Response.Write(r);
string source = @"F:\wwwroot\admin\upload\2012060615160327327.png";
Regex reg = new Regex(@"admin.*");
Match mm = reg.Match(source);
MessageBox.Show(mm.Value);