Regular Expressions 101

Community Patterns

Validate Swedish License Plater Number (2022)

0

Regular Expression
PCRE2 (PHP >=7.3)

/
[ABCDEFGHJKLMNOPRSTUWXYZ]{3}[0-9]{2}[ABCDEFGHJKLMNPRSTUWXYZ0-9]{1}
/
gm

Description

For the first three characters, A-Z excluding I, Q, V, Å, Ä and Ö are issued on plates. Character 4 and 5: 0-9 digits allowed. Last character A-Z excluding I, O, Q, V, Å, Ä and Ö valid.

Submitted by Müllweisser - a year ago