For Germany, it is /\d{5}/ with no restrictions on the digits.
Joachim
-----Urspr�ngliche Nachricht-----
Von: Abigail [mailto:[EMAIL PROTECTED]]
Gesendet am: Donnerstag, 2. Januar 2003 15:30
An: [EMAIL PROTECTED]
Betreff: Zip/Postal codes.
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