正则表达式:大写字母 小写字母 数字 特殊字符(四种里至少三种)
第一种:
/(((?=.*[a-z])(?=.*[A-Z])(?=.*\W)[\da-zA-Z\W]{8,16}$)|(^(?=.*\d)(?=.*[A-Z])(?=.*\W)[\da-zA-Z\W]{8,16}$)|((?=.\d)(?=.[a-z])(?=.*\W)[\da-zA-Z\W]{8,16}KaTeX parse error: Expected 'EOF', got '\d' at position 10: )|(^(?=.*\̲d̲)(?=.*[a-z])(?=…))/
第二种:
/^(?![a-zA-Z]+
)
(
?
!
[
A
−
Z
0
−
9
]
+
)(?![A-Z0-9]+
)(?![A−Z0−9]+)(?![A-Z\W_]+
)
(
?
!
[
a
−
z
0
−
9
]
+
)(?![a-z0-9]+
)(?![a−z0−9]+)(?![a-z\W_]+KaTeX parse error: Expected 'EOF', got '\W' at position 9: )(?![0-9\̲W̲_]+)[a-zA-Z0-9\W_]{8,16}$/