50,534
社区成员
发帖
与我相关
我的任务
分享
package com.test;
public class Test01 {
public static void main(String[] args) {
String s = "d:\2012-05.xls";
System.out.println(s.replaceAll("\\\\", "\\\\\\\\"));
}
}
String s = "d:\2012-05.xls";
String s = "d:\\2012-05.xls";
String s = "d:/2012-05.xls";