Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
^_?[a-z0-9]+(?:-+[a-z0-9]+)*$
/
gm

Description

including digits and double dashes

Submitted by anonymous - a year ago