public static String replaceBlank(String str) { String dest = ""; if (str != null) { Pattern p = Pattern.compile("\\s*|\t|\r|\n"); Matcher m = p.matcher(str); dest = m.replaceAll(""); } return dest; }
【Java】在字符串中去除\t制表符
最新推荐文章于 2021-10-29 14:40:40 发布
