# README
验证
# Functions
IsDomain 校验域名.
IsEmail check if the string is a email address.
IsIP 检查字符串是否为 IP 地址。.
IsIPV4 检查字符串是否为 ipv4 地址。.
IsIPV6 检查字符串是否为 ipv6 地址。.
IsMac mac地址校验.
IsPassport 校验护照 Universal passport format rule: Starting with letter, containing only numbers or underscores, length between 6 and 18.
IsPhoneLoose 宽松的手机号验证 13, 14, 15, 16, 17, 18, 19 can pass the verification (只要满足 13、14、15、16、17、18、19开头的11位数字都可以通过验证).
IsPhoneTight 手机验证 Phone format validation.
IsPort 检查字符串是否是有效的网络端口。.
IsPostalCode 邮政编码.
IsQQ 腾讯qq校验.
IsResidentID 身份证ID校验
xxxxxx yyyy MM dd 375 0 十八位 xxxxxx yy MM dd 75 0 十五位
地区: [1-9]\d{5} 年的前两位:(18|19|([23]\d)) 1800-2399 年的后两位:\d{2} 月份: ((0[1-9])|(10|11|12)) 天数: (([0-2][1-9])|10|20|30|31) 闰年不能禁止29+
三位顺序码:\d{3} 两位顺序码:\d{2} 校验码: [0-9Xx]
十八位:^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$ 十五位:^[1-9]\d{5}\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}$
总: (^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$)|(^[1-9]\d{5}\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}$).
IsStrongPassword 检查字符串是否为强密码,如果 len(password) 小于长度参数,则返回 false Strong password: alpha(lower+upper) + number + special chars(!@#$%^&*()?><).
IsTelephone 固话校验.
IsURL 检查字符串是否为 url。.
IsWeakPassword 检查字符串是否为弱密码 Weak password: 只有字母或只有数字或字母+数字.
IsZero 检查是否是零值.