Exception in thread "main" java.util.regex.PatternSyntaxException: Unexpected in
ternal error near index 1
\
^
at java.util.regex.Pattern.error(Pattern.java:1650)
at java.util.regex.Pattern.compile(Pattern.java:1403)
at java.util.regex.Pattern.<init>(Pattern.java:1124)
at java.util.regex.Pattern.compile(Pattern.java:817)
at java.lang.String.replaceAll(String.java:2000)
at FilterFile.main(FilterFile.java:26)
26行就是上面的str=str.replaceAll("\\","/");
求解作者: micro_hx 时间: 2015-6-10 14:55
C:\\Documents and Settings\\Henry\\桌面\\1\\linecounte
这样是可以的,,