any86 / any-rule

🦕 常用正则大全, 支持web / vscode / idea / Alfred Workflow多平台
https://any-rule.vercel.app/
MIT License
8.51k stars 830 forks source link

我有更好的正则: ip-v4[:端口] #310

Open chorar opened 4 months ago

chorar commented 4 months ago

^(([01]?\d\d?|2[0-4]\d|25[0-5])((:([1-9]\d{0,3}|[1-5]\d{4}|6[0-4]\d{3}|65[0-4]\d{2}|655[0-2]\d|6553[0-5]))?$|\.(?!$))){4} image

jiangkaifree commented 1 month ago

0.0.0.0 应该不是一个合法ipv4地址