Community Patterns

Community Library Entry

87

Regular Expression
Created·2015-07-08 18:46
Flavor·ECMAScript (JavaScript)

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

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