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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
^\d{3}-\d{2}-\d{4}$
Description
This regular expression will match a hyphen-separated Social Security Number (SSN) in the format NNN-NN-NNNN.
Matches
333-22-4444 | 123-45-6789
Non-Matches
123456789 | SSN
Author Rating: Not yet rated. Steven Smith
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: Please Help
Name: Fahad
Date: 1/31/2017 7:45:52 AM
Comment:
I want to validate the following expression. text - text - text Please help me to create the regular expression


Title: What's the point?
Name: JP Honeywell
Date: 6/17/2004 7:09:11 PM
Comment:
If you'll validate 000-00-0000 as good?


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