|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Password ValidationHi,
I need a regular expression for a login control i am using. It needs to validate a minimum password length of 8. Must consist of 1 upper case character and 1 numeric character and no non-alphanumeric characters. Can some one please show me an example. I tried the following but have had no luck. ValidationExpression="\[A-Z]{1,}\[a-z]{6,}\d{1,}" ValidationExpression="\[A-Z]{1,}\w{6,}\d{1,}" Thanks, Ron
http://regexlib.com/REDetails.aspx?regexp_id=31
You can have loads of RE from this link. Pls provide feedback. Show quoteHide quote "Ron" wrote: > Hi, > I need a regular expression for a login control i am using. > It needs to validate a minimum password length of 8. > Must consist of 1 upper case character and 1 numeric character and no > non-alphanumeric characters. > > Can some one please show me an example. > I tried the following but have had no luck. > > ValidationExpression="\[A-Z]{1,}\[a-z]{6,}\d{1,}" > ValidationExpression="\[A-Z]{1,}\w{6,}\d{1,}" > > > Thanks, > Ron
Other interesting topics
Building other sln (to build references)
User control accessing outside control SDK VS RUNTIME LIBRARY Line break in GridView Header Text Textbox in User Control error -does not exist in current context Postback,Master page,User control problem SqlDataSource Datasource doesn't generate data GridView: Calculated Field Hot to handle "Directory not found" from ASP.NET? |
|||||||||||||||||||||||