Regular Expressions 101

Community Patterns

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