export const RegNumber15 = {
pattern: /^[A-Za-z0-9]{1,15}$/,
message: "请输入数字或字母,限制长度为15个字符"
};
export const RegString50 = {
pattern: /(^[\s\S]{1,50}$)/,
message: "请输入中文字符,限制长度50个字符"
};
export const RegChineseEnglish10 = {
pattern: /^[\u4E00-\u9FA5A-Za-z]{1,10}$/,
message: "请输入中文或英文,限制长度10个字符"
}
export const RegPhone11 = {
pattern: /^1[0-9]{10}$/,
message: "请输入手机号,限制长度11个数字"
}
export const RegPersonNo = {
pattern: /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/,
message: "请输入身份证号。限制长度为16位数字"
}