Regular Expressions 101

Community Patterns

String with 1 lowercase 1 uppercase & 1 digit

-2

Regular Expression
ECMAScript (JavaScript)

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

Description

Regular expression for a validating a string with following rules:

at least one lowercase letter at least one upper case letter at least one digit length between 6 and 14 ^(?=.\d)(?=.[a-z])(?=.*[A-Z]).{6,14}$

Submitted by Rasmita Dash - 9 years ago