110,500
社区成员
发帖
与我相关
我的任务
分享
List<string> lst = new List<string>();
lst.Add('\n");
lst.Add("\t");
string strText ="abc\nabc\tabc";
foreach(var v in lst) strText = strText.Replace(v,"");
var str = "abc\nbca";
Console.WriteLine(str.Replace("\n", ""));
str = str.Replace("\\","");
str = str.replace(@"\",@"\\");