java的replaceFirst和\(反斜杠)[replace、replaceAll和replaceFirst的区别]
首先看下面的代码:System.out.println("aaa".replace("a","\\."));
System.out.println("aaa".replace("a","\\\\."));
System.out.println("aaa".replaceAll("a","\\."));
System.out.println("aaa".replaceAll("a","\\\\.")