//找到整个字符串中的数字 String filecontext="sdfsdlfj465ff46548f98xcz1058fg"; Pattern p=Pattern.compile("[\\d]+.[\\d]+"); Matcher m=p.matcher(filecontext); while(m.find()){ String strNumber = m.group(); }
找出一个字符串中的数字
猜你喜欢
转载自huangshanghua.iteye.com/blog/1634054
今日推荐
周排行