Regular Expressions 101

Community Patterns

French Plate Number

0

Regular Expression
Python

r"
[A-HJ-NP-TV-Z]{2}(00[1-9]|0[1-9]\d|[1-9]\d\d)[A-HJ-NP-TV-Z]{2}
"
gm

Description

https://fr.wikipedia.org/wiki/Plaque_d'immatriculation_fran%C3%A7aise#Num%C3%A9rotation

AA001AA

Note : I, O and U are forbidden (too close to 1, 0 and V). 3 digits number ranges from 001 to 999.

Submitted by anonymous - 4 years ago