any86 / any-rule

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

我有更好的正则: 数字和英文字母组成,并且同时含有数字和英文字母 #258

Closed PanRenJIE0618 closed 1 year ago

PanRenJIE0618 commented 2 years ago

可对长度进行校验限制 /^(?=.*[a-zA-Z])(?=.*\d).{5,8}$/

any86 commented 1 year ago

才看到, 这条已有类似 /^(?=.*[a-zA-Z])(?=.*\d).+$/