// 密码校验,只能是6-12数字和字母组合
public static final String MatchPassword = "^(?![a-zA-Z]+$)(?![0-9]+$)[0-9a-zA-Z]{6,12}$";
// 6位数字校验
public static final String MatchOTPPassword = "^\\d{6}$";
// 金额校验
public static final String MatchAmount = "^(\\d{1,10}|\\d{1,3}(,\\d{3})*)(\\.\\d{1,2})?$";
// 利率校验
public static final String MatchRate = "^(0*[1-9]\\d{0,12}(\\.\\d{0,4})?)|(0*\\.[1-9][0-9])|(0*\\.0[1-9])|(0*\\.[1-9])$";
// 帐号校验
public static final String MatchAccountNum = "^[0-9\\-]{16,30}$";
// 小额跨行
public static final String MatchTJAccountNum = "^[0-9\\-]{12,30}$";
// 用户名校验
public static final String MatchAccountName = "^[a-zA-Z0-9()\\(\\)《》<>\\-\\u4e00-\\u9fff]{1,30}";
// 预留信息校验
public static final String MatchRemark = "^[a-zA-Z0-9\\u4e00-\\u9fbb\\u3400-\\u4dbf\\uf900-\\ufad9\\u3000-\\u303f\\u2000-\\u206f\\uff00-\\uffff]{1,32}$";
// 正整数校验
public static final String MatchNaturalNumber = "^[0-9]*[1-9][0-9]*$";
// 手机号校验
public static final String MatchPhoneNumber = "^1[3-8]\\d{9}$";
// 邮箱正则
public static final String MatchEmail = "^\\w+@\\w+(\\.\\w+)+$";
// 身份证号检验
public static final String MatchIdNo = "((^\\d{14}(\\d|X|x)$)|(^\\d{17}(\\d|X|x))$)";
// 校验只能输入汉字、字母或数字
public static final String MatchString = "^[\\u4e00-\\u9fa5\\dA-Za-z]*$";
public static final String MatchName = "^[\\u4e00-\\u9fa5\\dA-Za-z]*$";
// 只能是数字,字母,短画线
public static final String MatchUnChineseString = "^[0-9A-Za-z-]{1,30}$";
![](http://cnc.qzs.qq.com/ac/b.gif)