Skip to content
  • 首页
  • PHP源码
  • html5网页模板
  • js特效
  • Window软件
  • Mac软件
  • 服务器
  • 其他
Search
源码巴士
  • Sample Page

java去除字符串时间的横杠、空格、冒号

https://blog.csdn.net/wx13227855087/article/details/83182961

 

String Times = " 2018-10-19 14:16:17";

String str = Times.replaceAll("[[\\s-:punct:]]","");

文章导航
←ios循环调用同一个接口_iOS | 如何简单优雅的处理多个接口依次请求?
python中的异常(捕获及处理异常)→

Copyright © 2022 源码巴士  鲁ICP备19024253号-1