Regular Expressions 101

Community Patterns

only letters and numbers

1

Regular Expression
PCRE (PHP <7.3)

/
^(?=(.*[0-9])+)(?=(.*[a-z])+)(?=(.*[A-Z])+)[0-9a-zA-Z]{8,12}$
/
g

Description

Match only with letters and numbers between x to y quantities

Submitted by anonymous - 7 years ago