62,268
社区成员
发帖
与我相关
我的任务
分享
str=string.Join("\\",Regex.Split(str,@"\\+"));
string source = @"123\\345\a\gd\\\\\454";
Regex reg = new Regex(@"\\{2,}(?=[^\\])");
source = reg.Replace(source, @"\");
string source = @"123\\345\a\gd\\\\\454";
Regex reg = new Regex(@"\\{2,}(?=[^\\])");
source = reg.Replace(source, @"\");
string input=@"123\\345\a\gd\\\\\454";
input = Regex.Replace(input, @"(\\)+", "$1");