【Java】将字符串中的 / 替换成 \
@Test public void testReplace(){ String str1 = "fifi/faf/faf/"; System.out.println(str1.replaceAll("/", "\\\\")); }
@Test public void testReplace(){ String str1 = "fifi/faf/faf/"; System.out.println(str1.replaceAll("/", "\\\\")); }