any86 / any-rule

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

中国地区的邮编校验是什么? #278

Open sundonghui opened 1 year ago

sundonghui commented 1 year ago

我首先想到的是 /^[0~9]{6}$/,对吗?

sundonghui commented 1 year ago

当然也可以把 [0~9]替换为 \d