Namespacedojox.validate.ca

Methods specific to the Canadian provinces

FunctionsBack to top

Validates 10 Canadian digit phone number for several common formats
Validates Canadian 6 digit postal code: Canadian postal codes are in the format ANA NAN, where A is a letter and N is a digit, with a space separating the third and fourth characters.
Validates Canadian province abbreviations (2 chars)
Validates Canadian 9 digit social insurance number for several common formats This routine only pattern matches and does not use the Luhn Algorithm to validate number.