正则

来源:互联网 发布:好用的面膜知乎 编辑:程序博客网 时间:2024/05/17 05:52

提取字符串中的数字

String ttStr = " h2 019--09?*2&".replaceAll("[^\\d.]", "");
0 0
原创粉丝点击