Regular Expressions 101

Community Patterns

french zip code

1

Regular Expression
ECMAScript (JavaScript)

/
^((0[1-9])|([1-8][0-9])|(9[0-8])|(2A)|(2B)) *([0-9]{3})?$
/
i

Description

code postal de taille 2 ou 5

Submitted by NIGGGA - 8 years ago