text查询带空格的正则
摘要:
public static String deleteBlank(String string) { Pattern p = Pattern.compile("\\s*|\t|\r|\n"); Matcher m = p.matcher(string); String after = m.replaceAll(""); return after; }replace("","");///替换空格为\\空格 public static String convertBlank(String string) { Patter 阅读全文
posted @ 2013-01-28 13:54 在旅途 阅读(196) 评论(0) 推荐(0) 编辑