/** 输入金额,1到6位整数或者至多两位小数 */
public static final String INPUT_AMOUNT_EXPR = "^[0-9]{1,6}(.[0-9]{1,2})?$";
/**银行卡号,16位数字*/
public static final String BANK_CARD_NO_EXPR = "^(\\d{16}|\\d{19})$";
/**美伽汇卡号:16位数字*/
public static final String MEGAPAY_CARD_NO_EXPR = "^\\d{16}$";
/**支付密码:6位数字*/
public static final String PAY_PWD_EXPR = "^\\d{6}$";
/**身份证号:18位数字或者17位数字后面跟大写X */
public static final String ID_NO_EXPR = "^\\d{17}(\\d|X)$";
/**用户名长度介于 2 和 8之间的字符串,只能是字母数字和下划线以及汉字 */
public static final String USER_NAME_EXPR = "^[a-zA-Z0-9_\u4e00-\u9fa5]{2,8}$";
/**登录密码长度介于 6 和 10之间的字符串,只能是字母数字和下划线 */
public static final String LOGIN_PWD_EXPR = "^[a-zA-Z0-9_]{6,10}$";
/**手机号码*/
public static final String PHONE_NUMBER_EXPR = "^(1(([35][0-9])|(47)||[7][0167]|[8][0126789]))\\d{8}$";
/**验证码6位数字*/
public static final String VERIFY_CODE_EXPR = "^\\d{6}$";
/**有效期4位数字*/
public static final String EXPIRE_DATE_EXPR = "^\\d{4}$";
/** CVV2 3位数字*/
public static final String CVV2_EXPR = "^\\d{3}$";
/**邮箱*/
public static final String EMAIL_EXPR = "^[\\w-]+(\\.[\\w-]+)*@[\\w-]+(\\.[\\w-]+)+$";
/**真实姓名,2到10位汉字*/
public static final String REAL_NAME_EXPR = "^[\u4e00-\u9fa5]{2,10}$";
/**修改密保问题和答案时,不能包含的特殊字符 */
public static final char[]SPECIAL_CHAR = { '[',']','<','>','(',')',
'(',')','!','!','@','$','&','|','%','*','?','?','\'',
'\"','“','”','’','‘','/','\\' };
网友评论