前沿拓展:
11ddff
https://jingyan.baidu.com/article/36d6ed1f2ddff11bcf48839d.html 请看一下图文攻略!
手机r”^[1][3-9][0-9]{9}$”
匹配样例:13611455251
86手机r”(^+86|86|[86]|(86)|+0086|0086|[0086]|(0086))(s[1]|[1])[345678][0-9]{9}$”
匹配样例:8613611455251、(86)13611455251、0086 13611455251
电话r”^[4,8,0][0-9]{2,3}(-[0-9]{7,8}$|(s)[0-9]{7,8}$|[0-9]{7,8}$)”
匹配样例:025-86988100、400 66577133
MAC地址r”^([0-9A-Fa-f][0、2、4、6、8、A、C、E][-:.]{0,1})([0-9A-Fa-f]{2}[-:.]{0,1}){4}([0-9A-Fa-f]{2})$”
匹配样例:64-00-6A-56-BB-E6、64-00-6a-56-bb-e6、64006A56BBE6
端口号r”^([0-9]|[1-9]d{1,3}|[1-5]d{4}|6[0-5]{2}[0-3][0-5])$”
匹配样例:12345、9527
经度r”^[-+]?(0?d{1,2}|0?d{1,2}.d{1,15}|1[0-7]?d{1}|1[0-7]?d{1}.d{1,15}|180|180.0{1,15})$”
匹配样例:115.1231
纬度r”^[-+]?(0?d{1,2}|0?d{1,2}.d{1,15}|1[0-7]?d{1}|1[0-7]?d{1}.d{1,15}|180|180.0{1,15})$”
匹配样例:123.32114
IPV4r”^(?:(?: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]?)$”
匹配样例:172.113.12.56
IPV6r”(?<![:.w])(?:[A-F0-9a-f]{1,4}:){7}[A-F0-9a-f]{1,4}(?![:.w])$”
匹配样例:1030:0:0:0:12FA:14CA:2551:2321
姓名u”(^[u4e00-u9fa5]{2:})|(^[u4e00-u9fa5]+(·[u4e00-u9fa5]+)*$)”
匹配样例:王小二
车牌u”^(([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][a-zA-Z]|[u4e00-u9fa5]{2}d{2}[-]?|[u4e00-u9fa5]{2}[a-zA-Z])[-]?|[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼][0-9]{2}[-]?|([wW][Jj][京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼][-]?)|([a-zA-Z]{2}))([A-Za-z0-9]{5}|[A-Za-z0-9]{4}[A-Z0-9挂警港澳领学]|[DdFf][A-HJ-NP-Za-hj-np-z0-9][0-9]{4}|[0-9]{5}[DdFf])$”
匹配样例:贵F0001挂、京AF0236、使A0062、沪A0023领、粤ZF023港、鲁B12345D
QQ号码u”^[1-9][0-9]{4,11}$”
匹配样例:31418766
邮箱u”^[A-Za-z1-9][w.-]+@(w+.)+[a-zA-Z]{2,3}$”
匹配样例:ghgs_17758@yeah.net.cn
域名u”(?=^.{3,255}$)^[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+.?$”
匹配样例:baidu.com
银行卡u”(?=^d{13,19}$)^([1-9])([0-9]{12,18})$”
匹配样例:6228480402564890000
地址u”^(?=.*?[u4E00-u9FA5])[0-9A-Za-zu4E00-u9FA5-s]+$”
匹配样例:雅谛小区 2栋3单元2-505′
时间(yyyy-mm-dd)u”^(?:(?!0000)[0-9]{4}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-8])|(?:0[13-9]|1[0-2])-(?:29|30)|(?:0[13578]|1[02])-31)|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)-02-29)$”
匹配样例:2018-11-22
汇总
转载请说明,若对你有帮助,点赞支持一下哦。
拓展知识:
前沿拓展:
11ddff
https://jingyan.baidu.com/article/36d6ed1f2ddff11bcf48839d.html 请看一下图文攻略!
手机r”^[1][3-9][0-9]{9}$”
匹配样例:13611455251
86手机r”(^+86|86|[86]|(86)|+0086|0086|[0086]|(0086))(s[1]|[1])[345678][0-9]{9}$”
匹配样例:8613611455251、(86)13611455251、0086 13611455251
电话r”^[4,8,0][0-9]{2,3}(-[0-9]{7,8}$|(s)[0-9]{7,8}$|[0-9]{7,8}$)”
匹配样例:025-86988100、400 66577133
MAC地址r”^([0-9A-Fa-f][0、2、4、6、8、A、C、E][-:.]{0,1})([0-9A-Fa-f]{2}[-:.]{0,1}){4}([0-9A-Fa-f]{2})$”
匹配样例:64-00-6A-56-BB-E6、64-00-6a-56-bb-e6、64006A56BBE6
端口号r”^([0-9]|[1-9]d{1,3}|[1-5]d{4}|6[0-5]{2}[0-3][0-5])$”
匹配样例:12345、9527
经度r”^[-+]?(0?d{1,2}|0?d{1,2}.d{1,15}|1[0-7]?d{1}|1[0-7]?d{1}.d{1,15}|180|180.0{1,15})$”
匹配样例:115.1231
纬度r”^[-+]?(0?d{1,2}|0?d{1,2}.d{1,15}|1[0-7]?d{1}|1[0-7]?d{1}.d{1,15}|180|180.0{1,15})$”
匹配样例:123.32114
IPV4r”^(?:(?: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]?)$”
匹配样例:172.113.12.56
IPV6r”(?<![:.w])(?:[A-F0-9a-f]{1,4}:){7}[A-F0-9a-f]{1,4}(?![:.w])$”
匹配样例:1030:0:0:0:12FA:14CA:2551:2321
姓名u”(^[u4e00-u9fa5]{2:})|(^[u4e00-u9fa5]+(·[u4e00-u9fa5]+)*$)”
匹配样例:王小二
车牌u”^(([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][a-zA-Z]|[u4e00-u9fa5]{2}d{2}[-]?|[u4e00-u9fa5]{2}[a-zA-Z])[-]?|[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼][0-9]{2}[-]?|([wW][Jj][京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼][-]?)|([a-zA-Z]{2}))([A-Za-z0-9]{5}|[A-Za-z0-9]{4}[A-Z0-9挂警港澳领学]|[DdFf][A-HJ-NP-Za-hj-np-z0-9][0-9]{4}|[0-9]{5}[DdFf])$”
匹配样例:贵F0001挂、京AF0236、使A0062、沪A0023领、粤ZF023港、鲁B12345D
QQ号码u”^[1-9][0-9]{4,11}$”
匹配样例:31418766
邮箱u”^[A-Za-z1-9][w.-]+@(w+.)+[a-zA-Z]{2,3}$”
匹配样例:ghgs_17758@yeah.net.cn
域名u”(?=^.{3,255}$)^[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+.?$”
匹配样例:baidu.com
银行卡u”(?=^d{13,19}$)^([1-9])([0-9]{12,18})$”
匹配样例:6228480402564890000
地址u”^(?=.*?[u4E00-u9FA5])[0-9A-Za-zu4E00-u9FA5-s]+$”
匹配样例:雅谛小区 2栋3单元2-505′
时间(yyyy-mm-dd)u”^(?:(?!0000)[0-9]{4}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-8])|(?:0[13-9]|1[0-2])-(?:29|30)|(?:0[13578]|1[02])-31)|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)-02-29)$”
匹配样例:2018-11-22
汇总
转载请说明,若对你有帮助,点赞支持一下哦。
拓展知识:
前沿拓展:
11ddff
https://jingyan.baidu.com/article/36d6ed1f2ddff11bcf48839d.html 请看一下图文攻略!
手机r”^[1][3-9][0-9]{9}$”
匹配样例:13611455251
86手机r”(^+86|86|[86]|(86)|+0086|0086|[0086]|(0086))(s[1]|[1])[345678][0-9]{9}$”
匹配样例:8613611455251、(86)13611455251、0086 13611455251
电话r”^[4,8,0][0-9]{2,3}(-[0-9]{7,8}$|(s)[0-9]{7,8}$|[0-9]{7,8}$)”
匹配样例:025-86988100、400 66577133
MAC地址r”^([0-9A-Fa-f][0、2、4、6、8、A、C、E][-:.]{0,1})([0-9A-Fa-f]{2}[-:.]{0,1}){4}([0-9A-Fa-f]{2})$”
匹配样例:64-00-6A-56-BB-E6、64-00-6a-56-bb-e6、64006A56BBE6
端口号r”^([0-9]|[1-9]d{1,3}|[1-5]d{4}|6[0-5]{2}[0-3][0-5])$”
匹配样例:12345、9527
经度r”^[-+]?(0?d{1,2}|0?d{1,2}.d{1,15}|1[0-7]?d{1}|1[0-7]?d{1}.d{1,15}|180|180.0{1,15})$”
匹配样例:115.1231
纬度r”^[-+]?(0?d{1,2}|0?d{1,2}.d{1,15}|1[0-7]?d{1}|1[0-7]?d{1}.d{1,15}|180|180.0{1,15})$”
匹配样例:123.32114
IPV4r”^(?:(?: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]?)$”
匹配样例:172.113.12.56
IPV6r”(?<![:.w])(?:[A-F0-9a-f]{1,4}:){7}[A-F0-9a-f]{1,4}(?![:.w])$”
匹配样例:1030:0:0:0:12FA:14CA:2551:2321
姓名u”(^[u4e00-u9fa5]{2:})|(^[u4e00-u9fa5]+(·[u4e00-u9fa5]+)*$)”
匹配样例:王小二
车牌u”^(([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][a-zA-Z]|[u4e00-u9fa5]{2}d{2}[-]?|[u4e00-u9fa5]{2}[a-zA-Z])[-]?|[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼][0-9]{2}[-]?|([wW][Jj][京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼][-]?)|([a-zA-Z]{2}))([A-Za-z0-9]{5}|[A-Za-z0-9]{4}[A-Z0-9挂警港澳领学]|[DdFf][A-HJ-NP-Za-hj-np-z0-9][0-9]{4}|[0-9]{5}[DdFf])$”
匹配样例:贵F0001挂、京AF0236、使A0062、沪A0023领、粤ZF023港、鲁B12345D
QQ号码u”^[1-9][0-9]{4,11}$”
匹配样例:31418766
邮箱u”^[A-Za-z1-9][w.-]+@(w+.)+[a-zA-Z]{2,3}$”
匹配样例:ghgs_17758@yeah.net.cn
域名u”(?=^.{3,255}$)^[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+.?$”
匹配样例:baidu.com
银行卡u”(?=^d{13,19}$)^([1-9])([0-9]{12,18})$”
匹配样例:6228480402564890000
地址u”^(?=.*?[u4E00-u9FA5])[0-9A-Za-zu4E00-u9FA5-s]+$”
匹配样例:雅谛小区 2栋3单元2-505′
时间(yyyy-mm-dd)u”^(?:(?!0000)[0-9]{4}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-8])|(?:0[13-9]|1[0-2])-(?:29|30)|(?:0[13578]|1[02])-31)|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)-02-29)$”
匹配样例:2018-11-22
汇总
转载请说明,若对你有帮助,点赞支持一下哦。
拓展知识:
前沿拓展:
11ddff
https://jingyan.baidu.com/article/36d6ed1f2ddff11bcf48839d.html 请看一下图文攻略!
手机r”^[1][3-9][0-9]{9}$”
匹配样例:13611455251
86手机r”(^+86|86|[86]|(86)|+0086|0086|[0086]|(0086))(s[1]|[1])[345678][0-9]{9}$”
匹配样例:8613611455251、(86)13611455251、0086 13611455251
电话r”^[4,8,0][0-9]{2,3}(-[0-9]{7,8}$|(s)[0-9]{7,8}$|[0-9]{7,8}$)”
匹配样例:025-86988100、400 66577133
MAC地址r”^([0-9A-Fa-f][0、2、4、6、8、A、C、E][-:.]{0,1})([0-9A-Fa-f]{2}[-:.]{0,1}){4}([0-9A-Fa-f]{2})$”
匹配样例:64-00-6A-56-BB-E6、64-00-6a-56-bb-e6、64006A56BBE6
端口号r”^([0-9]|[1-9]d{1,3}|[1-5]d{4}|6[0-5]{2}[0-3][0-5])$”
匹配样例:12345、9527
经度r”^[-+]?(0?d{1,2}|0?d{1,2}.d{1,15}|1[0-7]?d{1}|1[0-7]?d{1}.d{1,15}|180|180.0{1,15})$”
匹配样例:115.1231
纬度r”^[-+]?(0?d{1,2}|0?d{1,2}.d{1,15}|1[0-7]?d{1}|1[0-7]?d{1}.d{1,15}|180|180.0{1,15})$”
匹配样例:123.32114
IPV4r”^(?:(?: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]?)$”
匹配样例:172.113.12.56
IPV6r”(?<![:.w])(?:[A-F0-9a-f]{1,4}:){7}[A-F0-9a-f]{1,4}(?![:.w])$”
匹配样例:1030:0:0:0:12FA:14CA:2551:2321
姓名u”(^[u4e00-u9fa5]{2:})|(^[u4e00-u9fa5]+(·[u4e00-u9fa5]+)*$)”
匹配样例:王小二
车牌u”^(([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][a-zA-Z]|[u4e00-u9fa5]{2}d{2}[-]?|[u4e00-u9fa5]{2}[a-zA-Z])[-]?|[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼][0-9]{2}[-]?|([wW][Jj][京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼][-]?)|([a-zA-Z]{2}))([A-Za-z0-9]{5}|[A-Za-z0-9]{4}[A-Z0-9挂警港澳领学]|[DdFf][A-HJ-NP-Za-hj-np-z0-9][0-9]{4}|[0-9]{5}[DdFf])$”
匹配样例:贵F0001挂、京AF0236、使A0062、沪A0023领、粤ZF023港、鲁B12345D
QQ号码u”^[1-9][0-9]{4,11}$”
匹配样例:31418766
邮箱u”^[A-Za-z1-9][w.-]+@(w+.)+[a-zA-Z]{2,3}$”
匹配样例:ghgs_17758@yeah.net.cn
域名u”(?=^.{3,255}$)^[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+.?$”
匹配样例:baidu.com
银行卡u”(?=^d{13,19}$)^([1-9])([0-9]{12,18})$”
匹配样例:6228480402564890000
地址u”^(?=.*?[u4E00-u9FA5])[0-9A-Za-zu4E00-u9FA5-s]+$”
匹配样例:雅谛小区 2栋3单元2-505′
时间(yyyy-mm-dd)u”^(?:(?!0000)[0-9]{4}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-8])|(?:0[13-9]|1[0-2])-(?:29|30)|(?:0[13578]|1[02])-31)|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)-02-29)$”
匹配样例:2018-11-22
汇总
转载请说明,若对你有帮助,点赞支持一下哦。
拓展知识:
原创文章,作者:九贤生活小编,如若转载,请注明出处:http://www.wangguangwei.com/91793.html