Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,10}$
/
g

Description

密码的强度必须是包含大小写字母和数字的组合,不能使用特殊字符,长度在8-10之间。

Submitted by anonymous - 7 years ago