/t5/coldfusion-discussions/need-refindnocase-help/td-p/962254Aug 24, 2006
Aug 24, 2006
Copy link to clipboard
Copied
I've been tasked with creating a simple validation for
Canadian zip codes. The idea is that the first character of the zip
code being entered need to contain one of the following letters:
ABCEGHJKLMNPRSTVXY
They don't necessarily have to be capatilzed.
I'm not good at regular expressions at all, so needless to
say I'm having a heck of a time trying to make this work. It seems
easy enough; can anyone help me figure out how to do this?
Ian is correct. And while looking into this, I came across
the following in Ben Forta's excellent book
Regular Expressions in 10 Minutes - finding Canadian postal
codes in an address line.