path = path.replaceAll("[/\\\\]+", Matcher.quoteReplacement(File.separator + File.separator));
java 斜杠转义问题
于 2018-08-14 11:11:59 首次发布
path = path.replaceAll("[/\\\\]+", Matcher.quoteReplacement(File.separator + File.separator));