去除指定空格<A > </A> 转换成<A ></A>
[quote]private String replaceBlank(String str) {
String dest = "";
if (str!=null) {
Pattern p = Pattern.compile("\\r+|\\t+|\\s+(?![^<>]*>)");
Matcher m = p.matcher(str);
dest = m.replaceAll("");
}
return dest;
}[/quote]
[quote]private String replaceBlank(String str) {
String dest = "";
if (str!=null) {
Pattern p = Pattern.compile("\\r+|\\t+|\\s+(?![^<>]*>)");
Matcher m = p.matcher(str);
dest = m.replaceAll("");
}
return dest;
}[/quote]