文章中替换java中转义字符 replaceAll ("\n","")的替换

关于\n属于 本身就属于转义符,我们在实现 替换时需要 双重转义
replaceAll("\\\\n","
");

你可能感兴趣的:(文章中替换java中转义字符 replaceAll ("\n","")的替换)