日期:2014-05-17 浏览次数:20800 次
string str = "a(12,as)b,213s,sdf(re,sdfsd(sd,323))"; str = Regex.Replace(str, @"(?<=\G[^(),]+?(\((?>[^()]+|\((?<Open>)|\)(?<-Open>))*(?(Open)(?!))\))?[^(),]*),", "HHH");// //a(12,as)bHHH213sHHHsdf(re,sdfsd(sd,323))