String str = "56.6米";
Pattern p = Pattern.compile("[(\\d+\\.\\d+)|\\d]");
Matcher matcher = p.matcher(str);
String utils = matcher.replaceAll("");
微信扫一扫
String str = "56.6米";
Pattern p = Pattern.compile("[(\\d+\\.\\d+)|\\d]");
Matcher matcher = p.matcher(str);
String utils = matcher.replaceAll("");
相关推荐