Last active
December 23, 2015 11:09
-
-
Save detj/6626241 to your computer and use it in GitHub Desktop.
Password regex
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
// Should contain at least 1 number | |
// May contain upper character letters | |
// May contain only four special characters (#$@!) | |
var foo = /^(?:[0-9]+[a-zA-Z]|[a-zA-Z]+[0-9])[a-z0-9#$@!]*$/; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment