Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
<!-- Matches Canadian PostalCode formats with or without spaces (e.g., "T2X 1V4" or "T2X1V4") -->
<validation:matches-regex value="T2X1V4" regex="^[ABCEGHJKLMNPRSTVXY]{1}\d{1}[A-Z]{1} *\d{1}[A-Z]{1}\d{1}$" caseSensitive="true" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment