Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
(^(([a-z]+)([-][a-z]+)*)$)
/
iu

Description

Matches a HTML5/custom element valid tag format .

Submitted by Shadrack Ndacayisenga - 8 years ago