Matches a U.S. social security number. The hyphens are optional, but both must be present or missing.
Also checks for disallowed numbers (666-**-****, 9**-**-****, 000-**-****, ***-00-****, ***-**-0000)
| Text | Result |
|---|---|
078-05-1120
| match |
111-11-1111
| match |
111111111
| match |
123-45-6789
| match |
123456789
| match |
| 000-11-1111 | no match |
| 111-00-1111 | no match |
| 111-11-0000 | no match |
| 123-456789 | no match |
| 12345-6789 | no match |
| 666-11-1111 | no match |
| 900-11-1111 | no match |
| 987-65-4320 | no match |