...

View Full Version : regular expressions challenge!



tachyon
07-06-2004, 04:14 AM
I'm trying to build a regular expression for Canadian postal codes for javascript but I'm not really up to the task. Can anyone here do it?

I needs to be:
letter (upper case only)
number
letter (upper case only)
no space OR space OR dash
number
letter (upper case only)
number
And then no more.

What would this regular expression look like? :confused:

Willy Duitt
07-06-2004, 05:44 AM
Try looking here (http://www.regexlib.com/REDetails.aspx?regexp_id=610) and search for: zip codes

tachyon
07-06-2004, 03:43 PM
That is an awesome site. Thanks!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum