Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2016-03-04 08:00
Flavor·PCRE (Legacy)

/
^((?=\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 Dat.Dao