Regular Expressions 101

Community Patterns

Hungarian regular and vanity license plates both from 1990 and 2022 series

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})|([A-Z]{3})\-([0-9]{3})|([A-Z]{4})\-([0-9]{2})|([A-Z]{5})\-([0-9]{1})))$
/
mg

Description

All regular and vanity Hungarian plates are included from 1990 and from 2022. Special plates (customs, lost, diplomatic and so on), police, ambulance, etc. are not included.

Submitted by gergelyfuzi - 3 months ago