日期:2014-05-20 浏览次数:20740 次
String s1="D:/aa/bb/cc/";//d:\aa\bb\cc System.out.println(s1.replaceAll("\\/","\\\\").replaceAll("D","d"));