日期:2014-05-17 浏览次数:20883 次
string tempStr = File.ReadAllText(@"C:\Users\myx\Desktop\Test.txt", Encoding.GetEncoding("GB2312"));//读取txt
tempStr = Regex.Replace(tempStr,@"(?<=\([^()]*?)""","");
/*
\"cE\":\"unlineExcel_CheckDate(C9,0,2012-01-03,2013-08-01)\"
*/
yourstr=Regex.Replace(yourstr,"(?<=\()[^()]+(?=\))",m=>m.Value.Replace("\"",""));