RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find SSN (US Social Security Number)
Expression
(?!000)(?!666)^([0-8]\d{2})(\d{2})(\d{4})$
Description
Validates SSN for INTEGERS ONLY. This does not allow spaces or dashes. Following this info: http://www.socialsecurity.gov/employer/randomization.html Starting in June 2011, the SSA will begin randomizing SSN creation. The only exclusions are SSNs beginning with 000, 666, or 900-999. That rather simplifies things.
Matches
001191873 | 667191873 | 899191873
Non-Matches
000191873 | 666191873 | 901191873
Author Rating: Not yet rated. Robert Helm
Source
Your Rating
Bad Good

Enter New Comment

Title
 
Name
 
Comment
 
Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Title: Not quite there yet
Name: rooter
Date: 8/30/2011 10:47:37 AM
Comment:
The middle two digits must not be 00. The final two digits must not be 0000.


Copyright © 2001-2024, RegexAdvice.com | ASP.NET Tutorials