Regular Expressions 101

Community Patterns

Alphanumeric Regex

16

Regular Expression
PCRE (PHP <7.3)

/
^(?=.*[a-zA-Z])(?=.*[0-9])[a-zA-Z0-9]+$
/

Description

Loading markdown...
Submitted by Deepan - 9 years ago