Regular Expressions 101

Community Patterns

License splicing

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 - 5 years ago