James Peter wrote:
but both are not working with min max length condition of the string. please let me know where i am doing wrong.
How are you using the expression? Are you using the find() method? Or the matches() method?
With the second password pattern, the matches() method should work (or at least, by eyeballing it, I didn't actually try it out).
Henry