1str..replaceAll("\\\\n", "/");
2.re.replaceAll("/", System.getProperty("line.separator")); /用line.separator替换
3.str..split("\\|");
1str..replaceAll("\\\\n", "/");
2.re.replaceAll("/", System.getProperty("line.separator")); /用line.separator替换
3.str..split("\\|");
转载于:https://www.cnblogs.com/guilf/p/10218224.html