Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
^(?=.{8,})(?=.*[a-zA-Z])(?=.*[0-9])(?=.*[§'\"|;¥¨<>?,`€!£°@#:$%{}\-_~^&+=*\/()\[\]]).*$
/

Description

1 letter - 1 number - 1 special character

Submitted by anonymous - 8 years ago