Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
^(?=.*?[0-9].*?[0-9])(?=.*[!@#$%])[0-9a-zA-Z!@#$%0-9]{8,}$
/
gm

Description

min length 6 and 1 number 1 epecial charachtor

Submitted by anonymous - 9 years ago