Created
February 12, 2019 23:39
-
-
Save jfrantz1-r7/a099416b00f36bf7fd2f9d1a90d23621 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Email - (?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\]) | |
SSN - ^(?!(000|666|9))\d{3}-(?!00)\d{2}-(?!0000)\d{4}$|^(?!(000|666|9))\d{3}(?!00)\d{2}(?!0000)\d{4}$ | |
Passport Number - ^(?!^0+$)[a-zA-Z0-9]{3,20}$ | |
Date of Birth - ^((?:0[0-9])|(?:[1-2][0-9])|(?:3[0-1]))/((?:0[1-9])|(?:1[0-2]))/((?:19|20)\d{2})$ | |
Credit Cards - ^(?:4[0-9]{12}(?:[0-9]{3})? # Visa | |
| (?:5[1-5][0-9]{2} # MasterCard | |
| 222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12} | |
| 3[47][0-9]{13} # American Express | |
| 3(?:0[0-5]|[68][0-9])[0-9]{11} # Diners Club | |
| 6(?:011|5[0-9]{2})[0-9]{12} # Discover | |
| (?:2131|1800|35\d{3})\d{11} # JCB | |
)$ | |
Drivers license | |
https://github.com/adambullmer/USDLRegex |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment