Regex Password Validation
Posted 百里登风
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Regex Password Validation相关的知识,希望对你有一定的参考价值。
You need to write regex that will validate a password to make sure it meets the follwing criteria:
- At least six characters long
- contains a lowercase letter
- contains an uppercase letter
- contains a number
function validate(password) { return /^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])[a-zA-Z0-9]{6,}$/.test(password); }
以上是关于Regex Password Validation的主要内容,如果未能解决你的问题,请参考以下文章
RE validation in Java EE(java.util.regex.Pattern)
URL Validation REGEX - URL 只对 http:// 有效
markdown HTML.CSS.JS.FetchingDataServerside.Password validation.v1