String str="sdfvsdf68fsdfsf8999fsdf09";String numberonly= str.replaceAll("[^0-9]", "");
更新:
String str="fgdfg12°59'50" Nfr | gdfg: 80°15'25" Efgd";String[] spitStr= str.split("\|");String numberOne= spitStr[0].replaceAll("[^0-9]", "");String numberSecond= spitStr[1].replaceAll("[^0-9]", "");
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)