Canadian postal code validation

Canadian postal code validation

I need to validate a Canadian postal code (for example, M4B 1C7) using C# (.NET) regular expressions.

Solutions/Answers:

Solution 1:

Canadian postal codes can’t contain the letters D, F, I, O,

Read more

Code Golf: Regex parser

Code Golf: Regex parser

The goal
Today’s Code Golf challenge is to create a regex parser in as few characters as possible.
The syntax
No, I’m not asking you to match Perl-style regular expressions. There’s … Read more