You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
555 B
20 lines
555 B
// 中文
|
|
// export const regexChinese = /[\u4E00-\u9FA5]/g
|
|
|
|
// 除中文
|
|
// export const regexExceptChinese = /[u4e00-u9fa5|,]+/ig
|
|
|
|
// 手机号
|
|
export const regexTel = /^1\d{10}$/
|
|
|
|
// 邮箱
|
|
// export const regexEmail = /^\w{3,}(\.\w+)*@[A-z0-9]+(\.[A-z]{2,5}){1,2}$/
|
|
|
|
// 只支持字母和数字 6-20
|
|
// export const regexChineseAndNumeric6To20 = /^[\da-z]{6,20}$/i
|
|
|
|
// 只支持中文和数字
|
|
// export const regexChineseAndNumeric = /^[\da-z]$/i
|
|
|
|
// 空格和特殊字符
|
|
// export const regexSpaceSpecialCharacters = /^[\u4E00-\u9FA5_a-zA-Z0-9]+$/
|
|
|