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

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details Password Strength
Expression
^((?=.{8,32}$)(?=.*\p{Lu})(?=.*\p{Ll})((?=.*\p{N})|(?=.*\p{P}))(?!.*\s))
Description
This .NET Framework expression tests a submitted password for length, a capital and lower case letter, a number or punctuation character and no spaces.<br /> (?=.{8,32}$) tests for a minimum of 8 characters and maximum of 32. (?=.*\p{Lu}) tests for at least one upper case letter anywhere in the string. (?=.*\p{Ll}) tests for at least one lower case letter anywhere in the string. ((?=.*\p{N})|(?=.*\p{P})) tests that there is at least one number OR one punctuation mark. (?!.*\s) tests that there are no spaces in the string.
Matches
Pass-Word | paSS1woRD | p4SSword
Non-Matches
PassWord | pass1RD | p4ssword
Author Rating: The rating for this expression. Jay A. Moritz
   Displaying page 1 of 1 pages; Items 1 to 1

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