Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
^(?=.*\d)(?=.*[A-Z])(?=.*[a-z])(?=.*[#!*@$%^&()\-_]+)[A-Za-z\d#!*@$%^&()]{8,16}$
/
gm

Description

password 8-16 characters atleast 1 lowercase,1 upper case,1 Spl. char,1 digit

Submitted by anonymous - 6 years ago