怎么把从数据库里读出来的字符串中的换行符替换成空格 得到的字符串.replaceAll("\r\n"," ").replaceAll("\n"," ")replaceAll还支持正则表达式:eg:replaceAll("\\d"," ") 将所有数字替换成空格.