摘要:
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; } /*----------------------------------- 简单方法 :String s = "你要去除的字符串&q 阅读全文