📜  正则表达式到验证的密码强度stackoverflow - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:23.704000             🧑  作者: Mango

代码示例1
^                         Start anchor
(?=.*[A-Z].*[A-Z])        Ensure string has two uppercase letters.
(?=.*[!@#$&*])            Ensure string has one special case letter.
(?=.*[0-9].*[0-9])        Ensure string has two digits.
(?=.*[a-z].*[a-z].*[a-z]) Ensure string has three lowercase letters.
.{8}                      Ensure string is of length 8.
$                         End anchor.