日期:2014-05-20 浏览次数:22539 次
string test = "abcd12345"; Regex reg=new Regex(@"[a-zA-Z]+(\d+)"); string result = reg.Replace(test, "fgh$1.xyz"); Console.WriteLine(result);