![]() ![]() ![]() 38 Since group numbers were allocated in a regular pattern, it was possible to identify an unissued SSN that contained an invalid group number. Until 2011, the SSA published the last group number used for each area number. Numbers with 666 or 900–999 ( Individual Taxpayer Identification Number ) in the first digit group.Some special numbers are never allocated: 34 This should not be confused with Tax Identification Numbers (TINs), which include additional area numbers. Effective June 25, 2011, the SSA assigns SSNs randomly and allows for the assignment of area numbers between 734 and 749 and above 772 through the 800s. Prior to June 25, 2011, a valid SSN could not have an area number between 734 and 749, or above 772, the highest area number the Social Security Administration had allocated. So, what makes a valid Social Security number anyway? The rules per Wikipedia 1 ![]() This, it turns out, is a fantastic use case for regular expressions: a somewhat complicated pattern that can be distilled into relatively simple rules. Today, for example, I needed to validate Social Security numbers. I continue to be enamored with the power of regular expressions - a feeling that only grows the more I understand them. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |