标签:
public static List<Long> getDigit(String text) {
List<Long> digitList = new ArrayList<Long>();
Pattern p = Pattern.compile("(\\d+)");
Matcher m = p.matcher(text);
while (m.find()) {
String find = m.group(1).toString();
digitList.add(Long.valueOf(find));
}
return digitList;
}
标签:
原文地址:http://www.cnblogs.com/yuepengtao/p/4643088.html