By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,099 Members | 2,144 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,099 IT Pros & Developers. It's quick & easy.

Need regular expression for at least 7 characters and at least 1 special chatacter

P: n/a
Been playing with asp:changepassword and have it looking OK except that I
can't elininate or change the title at the top that says "Change Your
Password". It's a repeat of my pages title.

But more importantly, I can't find the regular expression for at least 7
characters and at least 1 special character.

Can you help?

Thanks

<asp:changepassword id="ChangePassword1" runat="server"

NewPasswordRegularExpression = '@\"(?=.{7,})(?=(.*\W){1,})'

PasswordLabelText="Old password"

PasswordRecoveryText="1Your password must be at least 7 characters long, and
contain at least one special character"

SuccessText="SUCCESS"

SuccessTitleText="SUCCESS TILE"

UserNameRequiredErrorMessage="REQUIRED"

NewPasswordLabelText="New password"

PasswordRequiredErrorMessage="2Your password must be at least 7 characters
long, and contain at least one special character"

NewPasswordRequiredErrorMessage="3Your password must be at least 7
characters long, and contain at least one special character"
PasswordHintText = ""

NewPasswordRegularExpressionErrorMessage = "4Your password must be at least
7 characters long, and contain at least one special character">

</asp:changepassword>
Oct 3 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.