Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2019-09-12 13:08
Flavor·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