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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Match a string containing at least 2 numbers and at least 6 alphabetic
Expression
(?=(.*\d.*){2,})(?=(.*[a-zA-Z].*){6,})
Description
Check password containing at least x numbers and y alphabetic. Use look back expression (?= )
Matches
abc2de2f, 2kdfd223df
Non-Matches
2abcdefgh, 9abc32de232
Author Rating: Not yet rated. Longge Ruan
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

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