Regular Expressions 101

Community Patterns

Community Library Entry

23

Regular Expression
PCRE (PHP <7.3)

/
^(?=.*[a-zA-Z]{1,})(?=.*[\d]{0,})[a-zA-Z0-9]{1,15}$
/

Description

1-15 alphanumeric login name

Submitted by gsanchezc - 10 years ago