Regular Expressions 101

Community Patterns

Participant Slug

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 - 5 years ago