private static String replaceAll(String str) {
return str.replaceAll("[\\u00a0*|\\t*| *| *| *|//s*]*","");
}
java 去除空格,包括全角,tab,等等其他类型空格
最新推荐文章于 2025-04-29 16:51:47 发布
private static String replaceAll(String str) {
return str.replaceAll("[\\u00a0*|\\t*| *| *| *|//s*]*","");
}