JAVA时间字符串去空格、冒号和横杠

来源:互联网 发布:淘宝刷逆战刷星 编辑:程序博客网 时间:2024/05/21 15:01
String date = "2017-09-19 14:40:01";String response = date.replaceAll("[[\\s-:punct:]]","");