本文介绍了基于正则表达式脚本的密码要求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的人


我需要密码正则表达式

要求
1)以字母s(A-Z和a-z)开头
2)必填数字(0到9)
3)特殊字符必须为1,并且最后应为(!,@,#,$,%,^,&,* _)
4)最小长度为6,最大长度为20....

我想要上述密码要求的正则表达式.... java脚本中的正则表达式....

请任何人帮我满足上述要求

Hi folks


I required password regular expression

requirement
1)start with alphabetic s (A-Z and a-z))
2)compulsory one number (0 to 9)
3)special characters must be one and should be at last(!,@,#,$,%,^,&,*_)
4)minimum length 6 and max 20....

I want regular expression for password above mentioned requirement ....in java script regular expression ....

please any one help me with above requirements

推荐答案



<asp:TextBox ID="TextBox2" runat="server"

             TextMode="Password">
</asp:TextBox>
<asp:PasswordStrength ID="PasswordStrength2"

                      runat="server"

        TargetControlID="TextBox2"

        RequiresUpperAndLowerCaseCharacters="true"

        MinimumNumericCharacters="1"

        MinimumSymbolCharacters="1"

        MinimumUpperCaseCharacters="1"

        PreferredPasswordLength="8"

        DisplayPosition="RightSide"

        StrengthIndicatorType="BarIndicator"

        BarBorderCssClass="BarBorder"

StrengthStyles="BarIndicatorweak;BarIndicatoraverage;BarIndicatorgood;">
</asp:PasswordStrength>



让我知道是否有任何问题

谢谢
Gaurav Dhol



let me know if any problem

Thanks
Gaurav Dhol


这篇关于基于正则表达式脚本的密码要求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-21 08:21