Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
^(?=.*\d)(?=.*\W)(?=.*[a-zA-Z]).{6,8}$
/
gm

Description

^(?=.\d)(?=.\W)(?=.*[a-zA-Z]).{6,8}$

Submitted by AS - 2 years ago