Author: gww | Posted on: 7/24/2008 12:27:15 PM | Views : 232

Been working on this Regular Exp but have run into a snag. So far I have:

(?=^.{15,}$)(?=.*\d.*\d)(?=.*\W+.*\W+)(?![.\n])(?=.*[A-Z].*[A-Z])(?=.*[a-z].*[a-z]).*$

This will validate for 2 capitals, 2 lower case, 2 numbers and 2 special characters.

I want to include some reserve words, such as "password", "pass", "word" that can not be used and cause the validation to fail if found. And this is where I am stuck. I can not seem to find any examples for this. Anyone have any tips on how to include that into the expression?

thanks
...

Go to the complete details ...