标签:static ring eal system 字符串 replace ace acea string
public static void main(String[] args) {
String str = "啊\r\n啊";
str = str.replaceAll("(\r\n|\n)", "<br/>");
System.out.println(str);
}
亲测可用
标签:static ring eal system 字符串 replace ace acea string
原文地址:https://www.cnblogs.com/niudaxianren/p/11727649.html