Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
^[a-zA-Z0-9-]{5,32}$
/
gm

Description

'a-z' - lowercase 'A-Z' - uppercase '-' - hyphens 0-9 - numeric {5, 32} between 5 and 32 characters

Submitted by anonymous - 6 years ago