Regular Expressions 101

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
^[a-zA-Z]{1}[a-zA-z0-9]{1,15}$
/
g

Description

^[a-zA-Z]{1}[a-zA-z0-9]{1,15}$

Test input :

nikhil11 (valid) 11nikhil (invalid)

Submitted by anonymous - 8 years ago