Matches US Social Security Numbers (XXX-XX-XXXX).
^(?!000|666|9\d\d)\d{3}-(?!00)\d{2}-(?!0000)\d{4}$
123-45-6789
000-00-0000
Test and customize this pattern in our interactive editor