Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Donate
Info
Regex Editor
Community Patterns
Account
Regex Quiz
Settings
Order By
Most Recent
Highest Score
Lowest Score
Most upvotes
Most downvotes
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET 7.0 (C#)
Rust
Sponsors
Community Patterns
Search among 2,380 community submitted regex patterns...
0
Validate comma-separated list of values (allowed: words; digits; special characters; single non-trailing non-leading spaces;)
PCRE2 (PHP >=7.3)
Validate comma-separated list of values (allowed: words; digits; special characters; single non-trailing non-leading spaces;)
Submitted by
anonymous
-
9 months ago
1
...
117
118
119
German vehicle registration incl. options
1
Regular Expression
PCRE (PHP <7.3)
/
^
(
[
A
-
ZäÄÖÜ
]
{1,3}
)
\-
[
]
{0,1}
(
[
A
-
Z
]
{0,2}
)
[
]
{0,1}
(
[
0
-
9
]
{1,4}
[
HE
]
{0,1}
)
[
]
{0,1}
(
[
0
-
9
]
{0,2}
)
[
]
{0,1}
(
[
0
-
9
]
{0,2}
)
$
/
gm
Open regex in editor
Description
This regex validates German vehicle registration numbers. It includes 'H' for Oldtimers (Historic) and 'E' for electric. Futhermore it validates optional seasonal plates. For example for motorcycles or recreational vehicles.
Submitted by
awwillia
-
3 years ago