Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
^[a-zA-Z][0-9][a-zA-Z][\ \-]{0,1}[0-9][a-zA-Z][0-9]$
/

Description

3 Forms: H5H 5H5 H5H5H5 H5H-5H5

Submitted by Christopher Dufort - 10 years ago