Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
^[a-z][a-z]+\d*$
/
mi

Description

The username should be at least 2 characters long, can have lower and uppercase letters, and can only have numbers in the end.

Submitted by anonymous - 6 years ago