标签:ima phone java 电话 ref head 包含 下划线 use
let phone = /^1((3[\d])|(4[5,6,9])|(5[0-3,5-9])|(6[5-7])|(7[0-8])|(8[1-3,5-8])|(9[1,8,9]))\d{8}$/
let Upper = /^[A-Z]+$/
let date = /^\d{4}(-)\d{1,2}\1\d{1,2}$/
let email = /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/
let tellphone = /\d{3}-\d{8}|\d{4}-\d{7}/
let card = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/
let number = /^[a-zA-Z][a-zA-Z0-9_]{4,15}$/
let includeChinese = /^[\u4E00-\u9FA5]/
let decimal = /^\d+\.\d+$/
let phoneOrTellPhone = /^((0\d{2,3}-\d{7,8})|(1[345789]\d{9}))$/
let nums = /^[0-9]{8}$/
let htmlNode = /<(.*)>.*<\/\1>|<(.*) \/>/
let qqNum = /^[1-9]*[1-9][0-9]*$/
let numAndLetter = /^[A-Za-z0-9]+$/
let lower = /^[a-z]+$/
let pwd = /^.*(?=.{6,})(?=.*\d)(?=.*[A-Z])(?=.*[a-z])(?=.*[!@#$%^&*? ]).*$/
let username = /^[a-zA-Z0-9_-]{4,16}$/
let ipv4 = /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/
let colorReg = /^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/
let chartPhone = /^[a-zA-Z]([-_a-zA-Z0-9]{5,19})+$/
let emailNum = /^(0[1-7]|1[0-356]|2[0-7]|3[0-6]|4[0-7]|5[1-7]|6[1-7]|7[0-5]|8[013-6])\d{4}$/
let chineseAndNum = /^(([\u4E00-\u9FA5])|(\d))+$/
let noLetter = /[^A-Za-z]/
标签:ima phone java 电话 ref head 包含 下划线 use
原文地址:https://www.cnblogs.com/korea/p/11150533.html