String字符串截取\转为//

String sts = newStr;
        sts = newStr.replaceAll("//","\\\\\\\\");;
//两个斜杠在字符串中为1个\斜杠

猜你喜欢

转载自www.cnblogs.com/yanchaohui/p/11579454.html