Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Valid Social Security Number Regular Expression List
- # 2019 WeakNet Labs, Douglas Berdeaux
- # ============================================================
- # (https://en.wikipedia.org/wiki/Social_Security_number)
- # 666
- # 667-679
- # 681-699
- # 729-999
- # Avoid 000:
- [0-5][0-9][1-9][^0-9][0-9]{2}[^0-9][0-9]{4} # 001-099,101-199,
- [1-9][0-9]0[^0-9][0-9]{2}[^0-9][0-9]{4} # 100-190,200-290,300-390,...,900-990
- # Avoid 666:
- 6([0-5]|[7-9])[0-9][^0-9][0-9]{2}[^0-9][0-9]{4} # 600-659
- 66([1-5]|[7-9])[^0-9][0-9]{2}[^0-9][0-9]{4} # 661-665,667-669
- # The final set:
- 7[0-2][0-9][^0-9][0-9]{2}[^0-9][0-9]{4} # 700-729
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement