RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find .NET MembershipProvider strong password validation for PasswordStrengthRegularExpression
Expression
(?=^[!@#$%\^&*()_\-+=\[{\]};:<>|\./?a-zA-Z\d]{7,}$)(?=([!@#$%\^&*()_\-+=\[{\]};:<>|\./?a-zA-Z\d]*\W+){1,})[!@#$%\^&*()_\-+=\[{\]};:<>|\./?a-zA-Z\d]*$
Description
Regex to validate strong password for .NET MembershipProvider ValidatePassword. Regex checks for minimum required password length and for minimum required non-alphanumeric characters. Change value '7' according to MinRequiredPasswordLength and '1' to MinRequiredNonAlphanumericCharacters.
Matches
12345!r@r | #dfgjaydh% | aA1!@#$% | 11111#aZ
Non-Matches
12345rfg | hsjahdgs | 12345
Author Rating: Not yet rated. Bram van den Broek
Source
Your Rating
Bad Good

Enter New Comment

Title
 
Name
 
Comment
 
Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Title: goooo
Name: goooo
Date: 12/28/2017 9:45:53 PM
Comment:
goooogoooogoooogooood


Title: My Opinion
Name: Oscar Nino
Date: 2/23/2017 11:27:26 PM
Comment:
It was excellent!!!


Title: alfanumeric password and special charecter validation
Name: arjun prasad
Date: 4/30/2013 5:28:53 AM
Comment:
that realy good for the validation


Copyright © 2001-2024, RegexAdvice.com | ASP.NET Tutorials