Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
^(?=.{6})(?=.*[a-z])(?=.*[A-Z])(?=.*[!"'()\[\]*,-.\/:;<>_`{}|~@#$%^&+=]).*$
/
g

Description

At least 6 chars with 1 upper/lower case letter and 1 special char

Submitted by anonymous - 7 years ago