得到的字符串.replaceAll("\r\n"," ").replaceAll("\n"," ")replaceAll还支持正则表达式:eg:replaceAll("\\d"," ") 将所有数字替换成空格.