Click here to Skip to main content
15,900,258 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Updated 14-Sep-12 1:58am
v2

dear use Ajax password strength extender which validates the password as you wish with just five lines of code
 
Share this answer
 
Hello

Check below code, asp.net allow to check password strenth

XML
<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>


let me know if any problem

Thanks
Gaurav Dhol
 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900