Regular Expressions 101

Community Patterns

1...45678...901

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
^[A-Z]{3}|[Dd]?
/
gm

Description

3 alpha characters expected, except in the instance of Germany which allows 1 alpha character.

Submitted by anonymous - 9 years ago