Posted By

edwinjanmoss on 10/19/07


Tagged


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

shovanjoshi
copyleft
dmitryfstyleca


Canadian postal code


 / Published in: Regular Expression
 

Z5Z-5Z5 orZ5Z5Z5

  1. /^\D{1}\d{1}\D{1}\-?\d{1}\D{1}\d{1}$/

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: Scooter on May 24, 2008

No postal code includes the letters D, F, I, O, Q, or U. The letters W and Z are used, but are not currently used as the first letter.

You need to login to post a comment.