密码强度正常快递... [英] Password Strength Regular Express...
本文介绍了密码强度正常快递...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要PasswordStrengthRegularExpression来允许密码大于8个字符,包含1个数字,1个特殊字符,1个字母但排除&在特殊字符
解决方案
看看这个讨论 http://forums.asp.net/t/918584.aspx/1
基于此,你可以构建你的正则表达式。这样的事情:
^(?= [^&] * \ d)(?= [^&] * [a-zA-Z])( ?= [^&安培;] * [%
#^ * @ \ - :]){8,}
[%
Hi,
I need PasswordStrengthRegularExpression to allow password greater than 8 char with 1 numeric, 1 special character, 1 alphabet but exclude "&" in Special character
解决方案
Take a look on this discussion http://forums.asp.net/t/918584.aspx/1
Based on it you can build your regex. Something like this:
^(?=[^&]*\d)(?=[^&]*[a-zA-Z])(?=[^&]*[%
#^*@\-:]).{8,}
[%
这篇关于密码强度正常快递...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文