删除指定字符串(急!)
string temp="as,df;fdsa,fas;223,fd;adf,fdas;\"fdsa,fdas\",fdas;fdas,fdas;";
我要删除\" \" 中间的逗号怎么删除?
[解决办法]
string temp = "as,df;fdsa,fas;223,fd;adf,fdas;\"fdsa,fdas\",fdas;fdas,fdas;"; temp = Regex.Replace(temp,@"(?<=""[^'""]*?),(?=[^'""]*?"")","");// //as,df;fdsa,fas;223,fd;adf,fdas;\"fdsafdas\",fdas;fdas,fdas;