Community Patterns

Community Library Entry

0

Regular Expression
Created·2019-10-11 08:44
Flavor·PCRE (Legacy)

/
^(0[1-9]|2[AB]|[1-8][0-9]|9[0-59]|97[1-8]|98[4-9])(\ *\,\ *(0[1-9]|2[AB]|[1-8][0-9]|9[0-59]|97[1-8]|98[4-9]))*$
/
i
Open regex in editor

Description

Allows to check a comma separated list of french "departement" codes. Stands metropolitan and extra territorial codes such as Martinique, Polynésie, Mayotte, etc.

Submitted by anonymous