前沿拓展:
11ddff
https://jingyan.baidu.com/article/36d6ed1f2ddff11bcf48839d.html 請(qǐng)看一下圖文攻略!
手機(jī)r”^[1][3-9][0-9]{9}$”
匹配樣例:13611455251
86手機(jī)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
端口號(hào)r”^([0-9]|[1-9]d{1,3}|[1-5]d{4}|6[0-5]{2}[0-3][0-5])$”
匹配樣例:12345、9527
經(jīng)度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”^(([京津滬渝冀豫云遼黑湘皖魯新蘇浙贛鄂桂甘晉蒙陜吉閩貴粵青藏川寧瓊使領(lǐng)][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掛警港澳領(lǐng)學(xué)]|[DdFf][A-HJ-NP-Za-hj-np-z0-9][0-9]{4}|[0-9]{5}[DdFf])$”
匹配樣例:貴F0001掛、京AF0236、使A0062、滬A0023領(lǐng)、粵ZF023港、魯B12345D
QQ號(hào)碼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]+$”
匹配樣例:雅諦小區(qū) 2棟3單元2-505′
時(shí)間(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
匯總
轉(zhuǎn)載請(qǐng)說明,若對(duì)你有幫助,點(diǎn)贊支持一下哦。
拓展知識(shí):
前沿拓展:
11ddff
https://jingyan.baidu.com/article/36d6ed1f2ddff11bcf48839d.html 請(qǐng)看一下圖文攻略!
手機(jī)r”^[1][3-9][0-9]{9}$”
匹配樣例:13611455251
86手機(jī)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
端口號(hào)r”^([0-9]|[1-9]d{1,3}|[1-5]d{4}|6[0-5]{2}[0-3][0-5])$”
匹配樣例:12345、9527
經(jīng)度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”^(([京津滬渝冀豫云遼黑湘皖魯新蘇浙贛鄂桂甘晉蒙陜吉閩貴粵青藏川寧瓊使領(lǐng)][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掛警港澳領(lǐng)學(xué)]|[DdFf][A-HJ-NP-Za-hj-np-z0-9][0-9]{4}|[0-9]{5}[DdFf])$”
匹配樣例:貴F0001掛、京AF0236、使A0062、滬A0023領(lǐng)、粵ZF023港、魯B12345D
QQ號(hào)碼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]+$”
匹配樣例:雅諦小區(qū) 2棟3單元2-505′
時(shí)間(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
匯總
轉(zhuǎn)載請(qǐng)說明,若對(duì)你有幫助,點(diǎn)贊支持一下哦。
拓展知識(shí):
前沿拓展:
11ddff
https://jingyan.baidu.com/article/36d6ed1f2ddff11bcf48839d.html 請(qǐng)看一下圖文攻略!
手機(jī)r”^[1][3-9][0-9]{9}$”
匹配樣例:13611455251
86手機(jī)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
端口號(hào)r”^([0-9]|[1-9]d{1,3}|[1-5]d{4}|6[0-5]{2}[0-3][0-5])$”
匹配樣例:12345、9527
經(jīng)度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”^(([京津滬渝冀豫云遼黑湘皖魯新蘇浙贛鄂桂甘晉蒙陜吉閩貴粵青藏川寧瓊使領(lǐng)][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掛警港澳領(lǐng)學(xué)]|[DdFf][A-HJ-NP-Za-hj-np-z0-9][0-9]{4}|[0-9]{5}[DdFf])$”
匹配樣例:貴F0001掛、京AF0236、使A0062、滬A0023領(lǐng)、粵ZF023港、魯B12345D
QQ號(hào)碼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]+$”
匹配樣例:雅諦小區(qū) 2棟3單元2-505′
時(shí)間(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
匯總
轉(zhuǎn)載請(qǐng)說明,若對(duì)你有幫助,點(diǎn)贊支持一下哦。
拓展知識(shí):
前沿拓展:
11ddff
https://jingyan.baidu.com/article/36d6ed1f2ddff11bcf48839d.html 請(qǐng)看一下圖文攻略!
手機(jī)r”^[1][3-9][0-9]{9}$”
匹配樣例:13611455251
86手機(jī)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
端口號(hào)r”^([0-9]|[1-9]d{1,3}|[1-5]d{4}|6[0-5]{2}[0-3][0-5])$”
匹配樣例:12345、9527
經(jīng)度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”^(([京津滬渝冀豫云遼黑湘皖魯新蘇浙贛鄂桂甘晉蒙陜吉閩貴粵青藏川寧瓊使領(lǐng)][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掛警港澳領(lǐng)學(xué)]|[DdFf][A-HJ-NP-Za-hj-np-z0-9][0-9]{4}|[0-9]{5}[DdFf])$”
匹配樣例:貴F0001掛、京AF0236、使A0062、滬A0023領(lǐng)、粵ZF023港、魯B12345D
QQ號(hào)碼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]+$”
匹配樣例:雅諦小區(qū) 2棟3單元2-505′
時(shí)間(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
匯總
轉(zhuǎn)載請(qǐng)說明,若對(duì)你有幫助,點(diǎn)贊支持一下哦。
拓展知識(shí):
原創(chuàng)文章,作者:九賢生活小編,如若轉(zhuǎn)載,請(qǐng)注明出處:http:///91793.html