Try it out on these example inputs:

back to RegexSwap.

US Social Security Number

Regular expression:

^([[:digit:]]{3}[ -][[:digit:]]{2}[ -][[:digit:]]{4}|[[:digit:]]{9})$

Categories:

Popularity:

You need to be logged in to cast votes on regexes.

Good
1
Bad
0

Author description and comments (0)

Topic by
kasper

2009-01-13
19:09

Description

US / American social security number regex.

You need to be logged in to participate

In order to post your own comments on this regex, you need to be logged in.

Username:

Log in by clicking the login link at the top of the screen