Regular Expressions 101

Library entries

Social Security Number (SSN)

Vote

4

Regular Expression
javascript

/
^((?!666|000)[0-8][0-9\_]{2}\-(?!00)[0-9\_]{2}\-(?!0000)[0-9\_]{4})*$
/
gm

Description

Loading markdown...
Submitted by noxToken - 6 years ago