Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[20220628] Password Validation Regex #259

Open
JuHyun419 opened this issue Jun 28, 2022 · 0 comments
Open

[20220628] Password Validation Regex #259

JuHyun419 opened this issue Jun 28, 2022 · 0 comments

Comments

@JuHyun419
Copy link
Owner

Password Validation Regex

// 특수문자 + 영문자 + 숫자 포함 조합(공백 X)
^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])(?=.*[@#$%^&+=])(?=\\S+$).{4,}$

^                 # start-of-string
(?=.*[0-9])       # a digit must occur at least once
(?=.*[a-z])       # a lower case letter must occur at least once
(?=.*[A-Z])       # an upper case letter must occur at least once
(?=.*[@#$%^&+=])  # a special character must occur at least once you can replace with your special characters
(?=\\S+$)         # no whitespace allowed in the entire string
.{4,}             # anything, at least six places though
$                 # end-of-string

// 특수문자 + (영문자 or 숫자) 조합으로 8~16자 사이
^(?=.*[0-9a-zA-Z])(?=.*[!@#\$%^&*])(?=\\S+\$).{8,16}\$

// 특수문자 + 영문자 + 숫자 중 2가지 이상 조합으로 8~16자 사이
^((?=.*[0-9])(?=.*[a-zA-Z])|(?=.*[0-9])(?=.*[!@#$%^&*?-_])|(?=.*[a-zA-Z])(?=.*[@#$%!\-_?&]))(?=\S+$).{8,16}$

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant