Regular Expressions 101

Community Patterns

123...6

Community Library Entry

87

Regular Expression
ECMAScript (JavaScript)

/
^((?=\S*?[A-Z])(?=\S*?[a-z])(?=\S*?[0-9]).{6,})\S$
/

Description

Checks that a password has a minimum of 6 characters, at least 1 uppercase letter, 1 lowercase letter, and 1 number with no spaces.

Submitted by Christian Klemp - 9 years ago