Regular Expressions 101

Community Patterns

1...34567...297

Strong Password (three of the four type)

0

Regular Expression
ECMAScript (JavaScript)

/
^(^(?=.*[0-9])(?=.*[A-Z])(?=.*[a-z])|(^(?=.*[0-9])(?=.*[A-Z])(?=.*[!@#$&*]).*$)|(^(?=.*[0-9])(?=.*[a-z])(?=.*[!@#$&*]).*$)|(?=.*[A-Z])(?=.*[a-z])(?=.*[!@#$&*]).*$).*$
/
gm

Description

must use at least three of the four available character types: lowercase letters, uppercase letters, numbers, and symbols.

Submitted by anonymous - 2 years ago