Regular Expressions 101

Community Patterns

Hungarian license plates from 2022

1

Regular Expression
PCRE2 (PHP >=7.3)

/
^((([A-Z]{3})\-([0-9]{4})|([A-Z]{2}) ([A-Z]{2})\-([0-9]{3})|([A-Z]{4})\-([0-9]{3})|([A-Z]{5})\-([0-9]{2})|([A-Z]{6})\-([0-9]{1})))$
/
mg

Description

All regular and vanity Hungarian plates are included. Special plates, police, ambulance, etc. are not included.

Submitted by gergelyfuzi - 9 months ago (Last modified 9 months ago)