Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Created·2015-09-18 13:34
Flavor·PCRE (Legacy)

/
^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])[\w!@#$%]{6,}$
/
gm
Open regex in editor

Description

Check if the string has a minimum of 6 characters, at least 1 upper case char, at least 1 lower case char and at least 1 number with no spaces.

Submitted by Webchef.de