String date = “2020-05-27 15:58:11”;
String time= date.replaceAll("[[\s-:punct:\s_:]]","");
Java去掉字符串中的横杠,冒号,空格
最新推荐文章于 2023-02-02 17:04:29 发布
String date = “2020-05-27 15:58:11”;
String time= date.replaceAll("[[\s-:punct:\s_:]]","");