I am working on being able to test validity of data entered into a database by a user. Currently I am specifically testing Canadian Postal Code format
A1A 1A1 (where A is a letter A to Z and 1 is a number 1 through 9)
I am wondering if there is an efficient way to test for this to ensure the format has been entered correctly?