Java String 表达式替换多个空格为一个空格

来源:互联网 发布:网上烧香拜佛软件 编辑:程序博客网 时间:2024/05/17 08:54

mark一下以备忘

stmt_text=stmt_text.replaceAll("\\s{2,}", " ");