Tagged Fiddles
- 1RevisionsForks
Social Security Number
/^(\D*\d\D*){9}$/Validates a 9-digit number (social security format for USA)#+ Match - 9 characters, delimiter independent 123-45-6789 123456789 123 45 6789 123.45.6789 123 - 45 - 6789 1234-5-6789 123a45b6789 #- Don't Match - < or > 9 characters 123-45-678 123-3-4567 12-34-5678 123-45-67890 1 12 123 1234 12345 123456 1234567 12345678 1234567890 abcdefg