Regular Expressions 101

Library entries

Canadian Zip code - Optional space or hyphen seperator

Vote

1

Regular Expression
pcre

/
^[ABCEGHJKLMNPRSTVXY][0-9][ABCEGHJKLMNPRSTVWXYZ][ -]?[0-9][ABCEGHJKLMNPRSTVWXYZ][0-9]$
/

Description

Loading markdown...
Submitted by Mike Bald - 5 years ago