Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
^.*(?=.{6,})(?=.*\d)(?=.*[A-Z])(?=.*[a-z])(?=.*[!@#$%^&*? ]).*$
/

Description

密码强度校验,最少6位,包括至少1个大写字母,1个小写字母,1个数字,1个特殊字符

Submitted by anonymous - 5 years ago