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

  • Post author:
  • Post category:java


String date = "2017-09-19 14:40:01"; String response = date.replaceAll("[[\s-:punct:]]","");



版权声明:本文为m0_54850467原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。