Abigail wrote:
> For the module Regexp::Common, I'm looking for the formats of
> zip (or postal) codes of various countries. Thanks to another
> mailing list, I've the formats for the Netherlands, Britain
> and Australia.
> For all other countries, I've nothing so far. Can anyone help?

France: \d{5}
Every digit can happen (leading zero allowed).
The two first digits refer to the french department (eg: 01 = Ain, 02 = 
Aisne, 03 = Allier, ..., 94 = Val-de-Marne, 95 = Val-d'Oise). The 00 is 
used for administration adresses (such as armies, or whatever). Numbers 
after 95 are used for DOM (foreign domains), TOM (foreign territories) 
and other islands. Eg: Guadeloupe, Martinique, Guyane, R�union, 
Nouvelle-Cal�donie, and so on.
The first number in a thousand refer to the chief town of the department 
(eg: 38000 = Grenoble, chief town of Is�re).

Not every combination is used, but you can't tell a priori whether a 
number is valid or not. Not even by saying "the first n in the current 
thousand", cause towns with districts ususally begins with 001 up to 
the number of districts in the town (eg: Lyon, chief town of 
Rh�ne-Alpes, has the following zip codes: 69001, 69002, 69003, 69006, 
69007, 69008 and 69009).

J�r�me
-- 
[EMAIL PROTECTED]

Reply via email to