any-rule has 250,042 recorded installs on VS Code Marketplace.
It ranks #1305 of 2,501 tracked VS Code Marketplace listings by installs.
It is rated 5.0 out of 5 from 4 ratings.
PluginStats has 4 daily observations since Oct 16, 2026; the latest is from Oct 19, 2026.
Rating: 5.00 / 5 from 4 ratings
About any-rule
正则大全
🦕支持web / vscode / idea / Alfred Workflow多平台
:rocket:web版本
https://any-rule.vercel.app/
🍭vscode插件
安装
vscode应用商店中搜索"any-rule".
使用
方式1:
1. 按F1(mac下fn+F1)打开正则列表. 2. 输入关键词搜索, 比如"手机".
方式2:
右键选择"🦕正则大全".
方式3:
在代码任意位置输入"@zz".
👩🏫图解正则
查看详情 每次在any-rule中选择正则后会弹出提示, 可点击"🤖图解正则".
点击后可以看到正则解析, 方便大家学习.
注意: 图解直接使用了https://regexper.com, 在此对作者表示敬意和感谢.
社区版本
社区版本非本人维护, 只是其他开发者使用了any-rule整理的正则内容, 如使用出现问题可直接与其开发者联系.
idea版
Alfred Workflow版
hyjs: 函数封装版
命令行版本
uTools版本
:fire:关于PR
欢迎大家PR, 步骤如下: 1. 正则请在packages/www/src/RULES.js中添加. 2. 运行npm run test:rules进行测试. 3. 运行npm run build:md更新README.md. 4. 请务必提交到develop分支.
在此感谢大家对any-rule做出的贡献!
🍔正则
火车车次
手机机身码(IMEI)
必须带端口号的网址(或ip)
网址(URL)
统一社会信用代码
统一社会信用代码(宽松匹配)(15位/18位/20位数字/字母)
迅雷链接
ed2k链接(宽松匹配)
磁力链接(宽松匹配)
子网掩码(不包含 0.0.0.0)
linux"隐藏文件"路径
linux文件夹路径
linux文件路径
window"文件夹"路径
window下"文件"路径
股票代码(A股)
大于等于0, 小于等于150, 支持小数位出现5, 如145.5, 用于判断考卷分数
html注释
md5格式(32位)
GUID/UUID
版本号(version)格式必须为X.Y.Z
视频(video)链接地址(视频格式可按需增删)
图片(image)链接地址(图片格式可按需增删)
24小时制时间(HH:mm:ss)
12小时制时间(hh:mm:ss)
base64格式
数字/货币金额(支持负数、千分位分隔符)
银行卡号(10到30位, 覆盖对公/私账户, 参考微信支付)
中文姓名
英文姓名
车牌号(新能源)
车牌号(非新能源)
车牌号(新能源+非新能源)
手机号(mobile phone)中国(严谨), 根据工信部2019年最新公布的手机号段
手机号(mobile phone)中国(宽松), 只要是13,14,15,16,17,18,19开头即可
手机号(mobile phone)中国(最宽松), 只要是1开头即可, 如果你的手机号是用来接收短信, 优先建议选择这一条
日期(宽松)
日期(严谨, 支持闰年判断)
中国省
可以被moment转化成功的时间 YYYYMMDD HH:mm:ss
email(邮箱)
座机(tel phone)电话(国内),如: 0341-86091234
身份证号(1代,15位数字)
身份证号(2代,18位数字),最后一位是校验位,可能为数字或字符X
身份证号, 支持1/2代(15位/18位数字)
护照(包含香港、澳门)
帐号是否合法(字母开头,允许5-16字节,允许字母数字下划线组合
中文/汉字
小数(支持科学计数)
只包含数字
html标签(宽松匹配)
匹配中文汉字和中文标点
qq号格式正确
数字和字母组成
英文字母
小写英文字母组成
大写英文字母
密码强度校验,最少6位,包括至少1个大写字母,1个小写字母,1个数字,1个特殊字符
用户名校验,4到16位(字母,数字,下划线,减号)
ip-v4[:端口]
ip-v6[:端口]
16进制颜色
微信号(wx),6至20位,以字母开头,字母,数字,减号,下划线
邮政编码(中国)
中文和数字
不能包含字母
java包名
mac地址
匹配连续重复的字符
数字和英文字母组成,并且同时含有数字和英文字母
香港身份证
澳门身份证
台湾身份证
大写字母,小写字母,数字,特殊符号 @#$%^&*~()-+=` 中任意3项密码
ASCII码表中的全部的特殊字符
正整数,不包含0
负整数,不包含0
整数
浮点数
浮点数(严格)
email(支持中文邮箱)
域名(非网址, 不包含协议)
军官/士兵证
户口薄
Description from the VS Code Marketplace listing.
- regxp
- typescript
- vscode
- 正则
Where any-rule sits in the listing
Each band is one page of 20. Installs on a log scale. Placement is projected from installs, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Recent observations
Full history (4)Similar VS Code Marketplace Snippets plugins
Data source
Install counts, average rating, and rating counts come from the public Visual Studio Marketplace gallery API. Installs are cumulative and exclude updates.
Listing: https://marketplace.visualstudio.com/items?itemName=russell.any-rule. First seen Oct 16, 2026; last successful collection Oct 19, 2026. See the methodology.