Regular Expressions 101

Community Patterns

1...34567...901

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
^(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-]).{7,}$
/

Description

atleast one letter atleast one symbol atleast one number atleast 7 charachter length

Submitted by lotfi.aly@gmail.com - 8 years ago