List of utility methods to do Regex Number Validate
List | parseNumbers(String str) parse Numbers Pattern pattern = Pattern.compile("\\d+\\.*\\d*"); Matcher m = pattern.matcher(str); List<Double> res = new ArrayList<Double>(); while (m.find()) { String tmp = m.group().trim(); res.add(Double.parseDouble(tmp)); return res.isEmpty() ? null : res; ... |