On Thu, Jan 02, 2003 at 03:29:43PM +0100, Abigail wrote: > > For Canada, I have: /[A-Z]\d[A-Z] \d[A-Z]\d/, but does Canada > use all 26 letters?
No. This covers it: /[ABCEGHJKLMNPRSTVXY][0-9][A-Z] [0-9][A-Z][0-9]/; > Is there any checksum buildin? LOL! More like a big collection of maps that changes every five years with the census. The space in the middle is required by Canada Post but if you're accepting user input it's better to make it optional, as well as allow lower case, and just reformat before using. -- Rick Delaney [EMAIL PROTECTED]