Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
^(?i)[0-9]?[-]?([A-Z]{3}[-]?[0-9]{3}|[0-9]{3}[-]?[A-Z]{3})$
/
gm

Description

Regex supporting new old license plates from Belgium but dus not support custom license plates

Submitted by anonymous - a year ago (Last modified a year ago)