I need to generate a password regex with the following criteria:
A valid password must contain at least 8 characters. It must have at least one uppercase, one lowercase and one non alphabetic character.
So far, I created this pattern:
((?=.*\\d)(?=.*[a-z])(?=.*[A-Z]).{8,50})
But it still taking String that has no non alphabetic character. How can I do this? Thanks