正则判断是不是数值
String regex = "(^\\d+$)|(^\\d+\\.\\d+$)";
boolean ret = val.matches(regex);
正则判断是不是正负8位整数3位小数
String regex = "(^[\\-]?[0-9]{1,8}$)|(^[\\-]?[0-9]{1,8}[\\.][0-9]{1,3}$)";
boolean ret = cellVal.matches(regex);
正则判断是不是数值
String regex = "(^\\d+$)|(^\\d+\\.\\d+$)";
boolean ret = val.matches(regex);
正则判断是不是正负8位整数3位小数
String regex = "(^[\\-]?[0-9]{1,8}$)|(^[\\-]?[0-9]{1,8}[\\.][0-9]{1,3}$)";
boolean ret = cellVal.matches(regex);