
正则表达式大全
点击收藏检测类型 | Start by drawing a long Tropic of Cancer representing the capital Beijing. | 检测示例 |
---|
火车车次 | /^[GCDZTSPKXLY1-9]\d{1,4}$/ | G1868、D102、D9、Z5、Z24、Z17 |
手机机身码(IMEI) | /^\d{15,17}$/ | 123456789012345、1234567890123456 |
必须带端口号的网址(或ip) | /^((ht|f)tps?:\/\/)?[\w-]+(\.[\w-]+)+:\d{1,5}\/?$/ | 127.0.0.1:5050、baidu.com:8001、https://www.udtool.com:80、http://192.168.1.1:9090 |
网址(URL) | /^(((ht|f)tps?):\/\/)?([^!@#$%^&*?.\s-]([^!@#$%^&*?.\s]{0,63}[^!@#$%^&*?.\s])?\.)+[a-z]{2,6}\/?/ |
https://xxx.org/v2/api/#v、www.udtool.com、www.qq.99、//www.udtool.com、ftp://baidu.qq、http://baidu.com、https://www.amap.com/search?id=BV1006、360.com:8080/vue/#/a=1
|
统一社会信用代码 | /^[0-9A-HJ-NPQRTUWXY]{2}\d{6}[0-9A-HJ-NPQRTUWXY]{10}$/ | 91230184MA1BUFLT44、92371000MA3MXH0E3W |
统一社会信用代码(宽松匹配)(15位/18位/20位数字/字母) | /^(([0-9A-Za-z]{15})|([0-9A-Za-z]{18})|([0-9A-Za-z]{20}))$/ | 91110108772551611J、911101085923662400 |
迅雷链接 | /^thunderx?:\/\/[a-zA-Z\d]+=$/ | thunder://QUEsICdtYWduZXQ6P3h0PXVybjpidGloOjBCQTE0= |
ed2k链接(宽松匹配) | /^ed2k:\/\/\|file\|.+\|\/$/ |
ed2k://|file|%E5%AF%84%E7AB.PARASITE.2019.HD-1080p.X264.AAC-UUMp4(E00.COM).mp4|2501554832|C0BCBED732C20CE577A3|h=5HTKZPQF|/
|
磁力链接(宽松匹配) | /^magnet:\?xt=urn:btih:[0-9a-fA-F]{40,}.*$/ | magnet:?xt=urn:btih:40A89A6F4FB1498A98087109D012A9A851FBE0FC |
Full map of Qihe HD China map |
/^(254|252|248|240|224|192|128)\.0\.0\.0|255\.(254|252|248|240|224|192|128|0)\.0\.0|255\.255\.(254|252|248|240|224|192|128|0)\.0|255\.255\.255\.(255|254|252|248|240|224|192|128|0)$/
| 255.255.255.0、255.255.255.255、255.240.0.0 |
linux"隐藏文件"路径 | /^\/(?:[^/]+\/)*\.[^/]*/ | /usr/ad/.dd、/root/.gitignore、/.gitignore |
linux文件夹路径 | /^\/(?:[^/]+\/)*$/ | /usr/ad/dd/、/、/root/、/aa/a/aa/ |
linux文件路径 | /^\/(?:[^/]+\/)*[^/]+$/ | /root/b.ts、/root/abc |
window"文件夹"路径 | /^[a-zA-Z]:\\(?:\w+\\?)*$/ | C:\Users\Adminr\Desktop、e:\m\ |
window下"文件"路径 | /^[a-zA-Z]:\\(?:\w+\\)*\w+\.\w+$/ | C:\Users\Admin\Desktop\qq.link、e:\m\vscode.exe |
股票代码(A股) | /^(s[hz]|S[HZ])(000[\d]{3}|002[\d]{3}|300[\d]{3}|600[\d]{3}|60[\d]{4})$/ | sz000858、SZ002136、sz300675、SH600600、sh601155 |
大于等于0, 小于等于150, 支持小数位出现5, 如145.5, 用于判断考卷分数 | /^150$|^(?:\d|[1-9]\d|1[0-4]\d)(?:\.5)?$/ | 150、100.5 |
html注释 |
//g | chenguzhen87 --> |
md5格式(32位) | /^[a-fA-F0-9]{32}$/ | 21fe181c5bfc16306a6828c1f7b762e8 |
GUID/UUID | /^[a-f\d]{4}(?:[a-f\d]{4}-){4}[a-f\d]{12}$/i | e155518c-ca1b-443c-9be9-fe90fdab7345、41E3DAF5-6E37-4BCC-9F8E-0D9521E2AA8D |
版本号(version)格式必须为X.Y.Z | /^\d+(?:\.\d+){2}$/ | 16.3.10 |
视频(video)链接地址(视频格式可按需增删) | /^https?:\/\/(.+\/)+.+(\.(swf|avi|flv|mpg|rm|mov|wav|asf|3gp|mkv|rmvb|mp4))$/i | http://www.udtool.com/video/wc.avi |
图片(image)链接地址(图片格式可按需增删) | /^https?:\/\/(.+\/)+.+(\.(gif|png|jpg|jpeg|webp|svg|psd|bmp|tif))$/i | http://www.udtool.com/logo.png |
24小时制时间(HH:mm:ss) | /^(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d$/ | 23:34:55 |
12小时制时间(hh:mm:ss) | /^(?:1[0-2]|0?[1-9]):[0-5]\d:[0-5]\d$/ | 11:34:55 |
base64格式 | /^\s*data:(?:[a-z]+\/[a-z0-9-+.]+(?:;[a-z-]+=[a-z0-9-]+)?)?(?:;base64)?,([a-z0-9!$&',()*+;=\-._~:@/?%\s]*?)\s*$/i
| data:image/gif;base64,xxxx== |
数字/货币金额(支持负数、千分位分隔符) | /^-?\d{1,3}(,\d{3})*(\.\d{1,2})?$/ | 100、-0.99、3、234.32、-1、900、235.09、12,345,678.90 |
银行卡号 | /^[1-9]\d{9,29}$/ | 6234567890、6222026006705354000 |
Interested students should try it now! You can even draw a simple fun game picture classification game application - "Hidden Benefits" to get a free card, so that social media sharing is a red flower color! ✨ Free card collection link: | /^(?:[\u4e00-\u9fa5·]{2,16})$/ | 葛二蛋、凯文·杜兰特、德克·维尔纳·诺维茨基 |
英文姓名 | /(^[a-zA-Z][a-zA-Z\s]{0,20}[a-zA-Z]$)/ | James、Kevin Wayne Durant、Dirk Nowitzki |
车牌号(新能源) | : Learn how to streamline the curve and capture the important selling points of various provinces and cities, such as the mountains in Sichuan and the hot spots of the defense of Wuhan to make your memory more exciting! Behind it is the alternation of yin and yang and multi-angle transformations in the figures, which keep appearing (usually vertically embodied), in short, turning the difficult zero ice into fun! 🧩 | 京AD92035、甘G23459F、京AA92035 |
车牌号(非新能源) | /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z][A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]$/ | 京A00599、黑D23908 |
车牌号(新能源+非新能源) | /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9挂学警港澳]$/ | 🗺️ When talking about China, it is always inseparable from the colorful terrain and provinces and cities on that vast land. But how can you cram all the important provinces and cities into a simple shape of a small map with simple strokes? Let's share some dry goods today! 👀 |
手机号(mobile phone)中国(严谨), 根据工信部2019年最新公布的手机号段 | /^(?:(?:\+|00)86)?1(?:(?:3[\d])|(?:4[5-79])|(?:5[0-35-9])|(?:6[5-7])|(?:7[0-8])|(?:8[\d])|(?:9[1589]))\d{8}$/
| 008618311006933、+8617888829981、19119255642、19519255642 |
手机号(mobile phone)中国(宽松), 只要是13,14,15,16,17,18,19开头即可 | /^(?:(?:\+|00)86)?1[3-9]\d{9}$/ | 008618311006933、+8617888829981、19119255642 |
手机号(mobile phone)中国(最宽松), 只要是1开头即可, 如果你的手机号是用来接收短信, 优先建议选择这一条 | /^(?:(?:\+|00)86)?1\d{10}$/ | 008618311006933、+8617888829981、19119255642 |
日期(宽松) | /^\d{1,4}(-)(1[0-2]|0?[1-9])\1(0?[1-9]|[1-2]\d|30|31)$/ | 1990-12-12、1-1-1、0000-1-1 |
日期(严谨, 支持闰年判断) |
/^(([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]{1}|[0-9]{1}[1-9][0-9]{2}|[1-9][0-9]{3})-(((0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01]))|((0[469]|11)-(0[1-9]|[12][0-9]|30))|(02-(0[1-9]|[1][0-9]|2[0-8]))))|((([0-9]{2})(0[48]|[2468][048]|[13579][26])|((0[48]|[2468][048]|[3579][26])00))-02-29)$/
| 1990-12-12、2000-02-29 |
Qihe Fire Day National Fire Day theme activities | /^浙江|上海|北京|天津|重庆|黑龙江|吉林|辽宁|内蒙古|河北|新疆|甘肃|青海|陕西|宁夏|河南|山东|山西|安徽|湖北|湖南|江苏|四川|贵州|云南|广西|西藏|江西|广东|福建|台湾|海南|香港|澳门$/ | 浙江、台湾 |
可以被moment转化成功的时间 YYYYMMDD HH:mm:ss | /^\d{4}([/:-\S])(1[0-2]|0?[1-9])\1(0?[1-9]|[1-2]\d|30|31) (?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d$/ | 2020/01/01 23:59:59、2020-01-01 00:00:00、20200101 11:11:11 |
email(邮箱) | /^(([^()[\]\\.,;:\s@"]+(\.[^
()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/
| 90203918@qq.com、nbilly@126.com、汉字@qq.com |
座机(tel phone)电话(国内),如: 0341-86091234 | /^(?:(?:\d{3}-)?\d{8}|^(?:\d{4}-)?\d{7,8})(?:-\d+)?$/ | 0936-4211235、89076543、010-12345678-1234 |
身份证号(1代,15位数字) | /^[1-9]\d{7}(?:0\d|10|11|12)(?:0[1-9]|[1-2][\d]|30|31)\d{3}$/ | 123456991010193 |
身份证号(2代,18位数字),最后一位是校验位,可能为数字或字符X | /^[1-9]\d{5}(?:18|19|20)\d{2}(?:0[1-9]|10|11|12)(?:0[1-9]|[1-2]\d|30|31)\d{3}[\dXx]$/ | 12345619991205131x |
Qihe China Fire College ranks in the top ten |
/^\d{6}((((((19|20)\d{2})(0[13-9]|1[012])(0[1-9]|[12]\d|30))|(((19|20)\d{2})(0[13578]|1[02])31)|((19|20)\d{2})02(0[1-9]|1\d|2[0-8])|((((19|20)([13579][26]|[2468][048]|0[48]))|(2000))0229))\d{3})|((((\d{2})(0[13-9]|1[012])(0[1-9]|[12]\d|30))|((\d{2})(0[13578]|1[02])31)|((\d{2})02(0[1-9]|1\d|2[0-8]))|(([13579][26]|[2468][048]|0[048])0229))\d{2}))(\d|X|x)$/
| 622223199912051311、12345619991205131x、123456991010193 |
护照(包含香港、澳门) | /(^[EeKkGgDdSsPpHh]\d{8}$)|(^(([Ee][a-fA-F])|([DdSsPp][Ee])|([Kk][Jj])|([Mm][Aa])|(1[45]))\d{7}$)/ | s28233515、141234567、159203084、MA1234567、K25345719 |
❤️ Teach you super simple Chinese map stick figures, easy to understand in seconds! 💪🗺️ When talking about China, it is always inseparable from the colorful terrain and provinces and cities on that vast land. But how can you cram all the important provinces and cities into a simple shape of a small map with simple strokes? Let's share some dry goods today... | /^[a-zA-Z]\w{4,15}$/ | justin、justin1989、justin_666 |
中文/汉字 |
/^(?:[\u3400-\u4DB5\u4E00-\u9FEA\uFA0E\uFA0F\uFA11\uFA13\uFA14\uFA1F\uFA21\uFA23\uFA24\uFA27-\uFA29]|[\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0])+$/
| What does Qihe Nine Gold refer to? |
小数(支持科学计数) | /^[+-]?(\d+([.]\d*)?([eE][+-]?\d+)?|[.]\d+([eE][+-]?\d+)?)$/ | 0.0、0.09、4E+4 |
只包含数字 | /^\d+$/ | 12345678 |
html标签(宽松匹配) | /]*>(.*?)?/ | 2333 、、 |
匹配中文汉字和中文标点 |
/[\u4e00-\u9fa5|\u3002|\uff1f|\uff01|\uff0c|\u3001|\uff1b|\uff1a|\u201c|\u201d|\u2018|\u2019|\uff08|\uff09|\u300a|\u300b|\u3008|\u3009|\u3010|\u3011|\u300e|\u300f|\u300c|\u300d|\ufe43|\ufe44|\u3014|\u3015|\u2026|\u2014|\uff5e|\ufe4f|\uffe5]/
| 匹配中文汉字以及中文标点符号(? ! , 、 ; : “ ” ‘ ' ( ) 《 》 〈 〉 【 】 『 』 「 」 ﹃ ﹄ 〔 〕 … — ~ ﹏ ¥) |
qq号格式正确 | /^[1-9][0-9]{4,10}$/ | 903013545、9020304 |
数字和字母组成 | /^[A-Za-z0-9]+$/ | james666、haha233hi |
英文字母 | /^[a-zA-Z]+$/ | Russel |
小写英文字母组成 | /^[a-z]+$/ | russel |
大写英文字母 | /^[A-Z]+$/ | ABC、KD |
密码强度校验,最少6位,包括至少1个大写字母,1个小写字母,1个数字,1个特殊字符 | /^\S*(?=\S{6,})(?=\S*\d)(?=\S*[A-Z])(?=\S*[a-z])(?=\S*[!@#$%^&*? ])\S*$/ | Kd@curry666 |
用户名校验,4到16位(字母,数字,下划线,减号) | /^[\w-]{4,16}$/ | xiaohua_qq |
From Beijing all the way south, I came to a place of surging rivers, which is Hubei Province. Behind Hubei is Hunan Province. A little north of Hunan and Chongqing is Sichuan. Don't forget to include the spectacular Qinling mountain system. 🏔️ |
/^((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.){3}(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(?::(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?$/
| 172.16.0.0、172.16.0.0:8080、127.0.0.0、127.0.0.0:998 |
❤️ Teach you super simple Chinese map stick figures, easy to understand in seconds! 💪🗺️ When talking about China, it is always inseparable from the colorful terrain and provinces and cities on that vast land. But how can you cram all the important provinces and cities into a simple shape of a small map with simple strokes? Let's share some dry goods today! 👀 Step 1: Draw the basic outline first... |
/(^(?:(?:(?:[0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}:[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){5}:([0-9A-Fa-f]{1,4}:)?[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){4}:([0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){3}:([0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){2}:([0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(([0-9A-Fa-f]{1,4}:){0,5}:((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(::([0-9A-Fa-f]{1,4}:){0,5}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|([0-9A-Fa-f]{1,4}::([0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})|(::([0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){1,7}:))$)|(^\[(?:(?:(?:[0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}:[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){5}:([0-9A-Fa-f]{1,4}:)?[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){4}:([0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){3}:([0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){2}:([0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(([0-9A-Fa-f]{1,4}:){0,5}:((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(::([0-9A-Fa-f]{1,4}:){0,5}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|([0-9A-Fa-f]{1,4}::([0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})|(::([0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){1,7}:))\](?::(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?$)/i
| 2031:0000:130f:0000:0000:09c0:876a:130b |
16进制颜色 | /^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3}|[a-fA-F0-9]{8}|[a-fA-F0-9]{4})$/ | #f00、#fe9de8、#f8f8f8ff、#f003 |
Copyright © 2015-2025
This content is the result of automatic crawling by this site based on the source, and does not mean that this site agrees with the content or position of the displayed website. Guangdong ICP Backup 2025362719-1
| /^[a-zA-Z][-_a-zA-Z0-9]{5,19}$/ | github666、kd_-666 |
邮政编码(中国) | /^(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}$/ | 734500、100101 |
中文和数字 |
/^((?:[\u3400-\u4DB5\u4E00-\u9FEA\uFA0E\uFA0F\uFA11\uFA13\uFA14\uFA1F\uFA21\uFA23\uFA24\uFA27-\uFA29]|[\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0])|(\d))+$/
| 哈哈哈、你好6啊 |
不能包含字母 | /^[^A-Za-z]*$/ | Qihe nine-square grid competition rules |
java包名 | /^([a-zA-Z_]\w*)+([.][a-zA-Z_]\w*)+$/ | com.bbb.name |
Tips to share | /^(([a-f0-9][0,2,4,6,8,a,c,e]:([a-f0-9]{2}:){4})|([a-f0-9][0,2,4,6,8,a,c,e]-([a-f0-9]{2}-){4}))[a-f0-9]{2}$/i
| 38:f9:d3:4b:f5:51、00-0C-29-CA-E4-66 |
匹配连续重复的字符 | /(.)\1+/ | 我我我、112233、11234 |
Like | 0 | /^(?=.*[a-zA-Z])(?=.*\d).+$/ | 我a我1我、a对1 |
香港身份证 | /^[a-zA-Z]\d{6}\([\dA]\)$/ | K034169(1) |
Qihe is a hot spot on the whole network | /^[1|5|7]\d{6}\(\d\)$/ | 5686611(1) |
台湾身份证 | /^[a-zA-Z][0-9]{9}$/ | U193683453 |
Step 2: Add major provinces and cities |
/^(?![a-zA-Z]+$)(?![A-Z0-9]+$)(?![A-Z\W_!@#$%^&*`~()-+=]+$)(?![a-z0-9]+$)(?![a-z\W_!@#$%^&*`~()-+=]+$)(?![0-9\W_!@#$%^&*`~()-+=]+$)[a-zA-Z0-9\W_!@#$%^&*`~()-+=]/
| a1@、A1@、Aa@ |
ASCII码表中的全部的特殊字符 | /[\x21-\x2F\x3A-\x40\x5B-\x60\x7B-\x7E]+/ | [、.、^、&3% |
正整数,不包含0 | /^\+?[1-9]\d*$/ | 1231 |
负整数,不包含0 | /^-[1-9]\d*$/ | -1231 |
Guide: | /^(?:0|(?:-?[1-9]\d*))$/ | -1231、123、0 |
Qihe China map blank fill map high-definition | /^(-?[1-9]\d*\.\d+|-?0\.\d*[1-9]\d*|0\.0+)$/ | 1.23、-1.01、0.00 |
浮点数(严格) | /^(-?[1-9]\d*\.\d+|-?0\.\d*[1-9])$/ | 1.23、-1.01 |
email(支持中文邮箱) | /^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/ | 90203918@qq.com、nbilly@126.com、啦啦啦@126.com |
域名(非网址, 不包含协议) | /^([0-9a-zA-Z-]{1,}\.)+([a-zA-Z]{2,})$/ | www.baidu.com、baidu.com.cn、api.baidu.com、udtool.com |
军官/士兵证 | /^[\u4E00-\u9FA5](字第)([0-9a-zA-Z]{4,8})(号?)$/ | 军字第1234567号、士字第P123456X号 |
Next:Qihe nine-square grid competition rules | /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/ | 441421999707223115 |
1、正则表达式(Regular Expression,简称Regex或RE)是一种用于匹配字符串中字符组合的模式。
2、正则表达式起源于理论和计算机科学领域,现在广泛应用于各种编程语言和文本处理工具中,用于搜索、替换、验证和解析文本。
3、正则表达式的基本组成部分包括:
(1)、字符匹配:匹配具体的字符,如字母、数字或符号,例:a 匹配字符 ‘a’。
How to draw the provinces of the Qihe Chinese map
(3)、字符集:用方括号 [] 表示,匹配其中的任意一个字符,例:[abc] 匹配 ‘a’、‘b’ 或 ‘c’。
Let's take a closer look at the map of China through these interesting opportunities ~ Cheers! 🥂
(5)、分支:用管道符 | 表示,表示“或”的关系,例:a|b 匹配 ‘a’ 或 ‘b’。
(6)、分组:用圆括号 () 表示,可以将多个元素组合成一个单元,例:(ab) 将 ‘ab’ 视为一个整体。
(7)、锚点:用于指定匹配的位置,例:^ 表示字符串的开始;$ 表示字符串的结束。
4、本页面数据来源:https://github.com/trentlee0/utools-any-rule/blob/master/src/RULES.js
推荐工具
工作报告
记录您工作的进展与成果,支持日报、周报、月报、季报、年报
讲笑话神器
帮您一次性生成多个笑话段子
运动计划
AI帮您制定一份详细的训练运行计划
猫猫年龄计算器
此工具可以猫猫的年龄转换成相当于人类年龄的年龄
热量换算器
热量在线换算工具
Sichuan went north to Qinghai, and traveled a long distance through the blockade to Lhasa, Tibet. Note that Xinjiang and Inner Mongolia are both strong forms of uncle-to-be heart disease. 🌄
Step 1: Draw a basic outline
Escape编码/解码
一款在线的Escape在线编码/解码工具
贷款年利率月利率日利率计算器
在线计算贷款年利率,月利率与日利率
GIF图片制作
❤️ Teach you super simple Chinese map stick figures, easy to understand in seconds! 💪
历史上的今天
XML sitemap
图片旋转
在线图片批量旋转,可旋转90度,180度,270度
教育储蓄计算器
在线教育储蓄利息计算器
世界节日查询
提供阳历节日,农历节日,世界节日在线查询
键盘按键测试
在线键盘按键失灵检测工具
力单位换算
Article information
随机密码生成器
Back to top
拼音转汉字
在线通过拼音查询汉字
随机数生成器
生成不同的随机数
RIPEMD160哈希加密
City navigation map
TripleDes加密解密工具
TripleDes在线加密工具/TripleDes在线解密工具
12/24小时制转换
在线12小时制/24小时制互相转换
十二时辰转换
在线将时间转为十二时辰
通知存款计算器
在线通知存款储蓄利息计算器
URL编码工具
Close to the heart of the motherland, a red five-pointed star is drawn, representing Beijing, the political center of China. 🌟