Quantcast
Channel: Symantec Connect - Messaging Gateway - Discussions
Viewing all articles
Browse latest Browse all 1067

SIN (Canadian SSN) Validation Pattern

$
0
0
I need a solution

Running 10.0.0-7

Does a regular expression exist to validate a SIN (Canadian SSN) in content filtering?
There's not much point in using the basic regex as they block anything from 111-111-111 to 999-999-999 with zero validation.

I see a US SSN (Premium) pattern exists but not Canadian.

Here are some rules on SIN validation and a full perl example:

http://www.ryerson.ca/JavaScript/lectures/forms/textValidation/sinProject.html

http://cpansearch.perl.org/src/MANWAR/Algorithm-SIN-0.08/lib/Algorithm/SIN.pm

Thanks


Viewing all articles
Browse latest Browse all 1067