Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Need regular expression for at least 7 characters and at least 1 special chatacter

Reply
Thread Tools

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

 
 
AAaron123
Guest
Posts: n/a
 
      10-03-2008
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>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove only special characters and junk characters from a file rvino Perl 0 08-14-2007 07:23 AM
How to convert HTML special characters to the real characters with a Java script Stefan Mueller HTML 3 07-23-2006 10:09 PM
Regular expression to exclude special characters RJN ASP .Net 2 02-25-2005 06:52 PM
Regular Expression for HTML Tags and Special Characters Marc Bogaard Perl Misc 12 10-21-2004 07:11 PM
Dynamically changing the regular expression of Regular Expression validator VSK ASP .Net 2 08-24-2003 02:47 PM



Advertisments