日期:2014-05-17 浏览次数:20993 次
Regex reg = new Regex(@"(?=/)/[^/]+"); string str = "/MOOOOAAA/C/C/D/s/123//"; MatchCollection mc = reg.Matches(str); foreach (Match m in mc) { Console.WriteLine(m.Value); }