I need help with my postal code validation. I have defined the following pattern:
Validators.pattern("/^[ABCEGHJKLMNPRSTVXY][0-9][ABCEGHJKLMNPRSTVWXYZ][0-9][ABCEGHJKLMNPRSTVWXYZ][0-9]$/")]]
Even though 'K1K1A1' should be a valid postal code, the validator is saying it's invalid. Can someone help me identify what is wrong with my regex?