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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Social Security Number
Expression
^(\d{3}-\d{2}-\d{4})|(\d{3}\d{2}\d{4})$
Description
This will accept SSN in the form of 123-45-6789 OR 123456789.
Matches
123-45-6789 | 123456789 | 456-63-6666
Non-Matches
123-45-459a | 222-2-2222 | 222-222222
Author Rating: The rating for this expression. Epaphrodite Dusingizimana
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

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