Regular Expressions 101

Community Patterns

Community Library Entry

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 - a year ago (Last modified a year ago)