/**
* 方法名稱:replaceBlank
* 方法描述: 將string字符串中的換行符進行替換為""
*
*/
public static String replaceBlank(String str) {
String dest = "";
if (str != null) {
Pattern p = Pattern.compile("\t|\r|\n");
Matcher m = p.matcher(str);
dest = m.replaceAll("");
}
return dest;
}