canadian postal code validation regex code example Example: canadian postal code pattern input html [A-Za-z][0-9][A-Za-z] [0-9][A-Za-z][0-9]