Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
^([A-Z]{1,4}|[0-9]{1,4})([A-Z]{1,4}|[0-9]{1,4})([A-Z]{1,4}|[0-9]{1,4})?$
/
gmi

Description

Split Dutch license plates on changes between numbers and letters. Groups of four characters has to be split afterwards to support the old formats.

Submitted by anonymous - 6 years ago