Wrong Evaluation of certain expressions
Brought to you by:
bergerhoff
Example expression:
((?=.\d)(?=.[a-z])(?=.[A-Z])(?=.[@#$%]).{6,20})
(see http://www.mkyong.com/regular-expressions/how-to-validate-password-with-regular-expression/ for details about this expression)
Test-String: AAbb12&
This should not match because & is not an allowed character.
In Java,
"AAbb12&".matches("((?=.\d)(?=.[a-z])(?=.[A-Z])(?=.[@#$%]).{6,20})")
returns false (which is correct),
but QuickREx says the expression matches (see attached screenshot).