正则表达式

JAVA:

1.金额

Pattern pattern = Pattern.compile("^?(([1-9]{1}\\d*)|([0]{1}))(\\.(\\d){1,2})?$");

Matcher matcher = pattern.matcher(".11");

System.out.println(matcher.matches());

原文地址:https://www.cnblogs.com/yangy608/p/2814904.html