Last active
September 5, 2016 10:50
-
-
Save Xordal/5e74f9e8c2808dfb256bfa12393f90b5 to your computer and use it in GitHub Desktop.
Regexp: password validation
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
// minimum: one digit, one Uppercase, one Lowercase | |
(?=.*\d)(?=.*\p{Lu})(?=.*\p{Ll})(.|D){6,} | |
// 6 - minimum length | |
for c#: | |
String pattern = @"^(?=.*\d)(?=.*\p{Lu})(?=.*\p{Ll}).{6,}$"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment