Indian codes are called PIN (postal index number) codes. They are
matched by \d{6}. But sometimes they are printed as \d{3}\s\d{3};
Each state has it's own code, as in U.S. the state codes are
[A-Z]{2}.
-- Ramki
On Thu, Jan 02, 2003 at 03:29:43PM +0100, 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 the US, I have: /\d{5}(-\d{4})?/, but I don't know whether
> any digit combination is allowed - does the format allow for
> leading 0s?
>
> For Canada, I have: /[A-Z]\d[A-Z] \d[A-Z]\d/, but does Canada
> use all 26 letters? Is there any checksum buildin?
>
> For all other countries, I've nothing so far. Can anyone help?
>
>
>
> Abigail
--
cheers,
Ramki
-----------------------------------------------------------
Three virtues of programming: laziness, impatience, hubris
Three virtues of community : diligence, patience, humility
-- Larry Wall, Author of perl