SyntaxFix
Write A Post
Hire A Developer
Questions
One way to check valid Canada postal code is-
function isValidCAPostal(pcVal) { return ^[A-Za-z][0-9][A-Za-z]\s{0,1}[0-9][A-Za-z][0-9]$/.test(pcVal); }
Hope this will help someone.