I need a regular expression in Java with the following requirements:
- can only contain letters and digits
- must at least contain one digit
- must contain at least one upperCase letter AND one lowerCase letter
I have tried several expressions that don't work - this is the best so far:
(?=.*\\d)(?=.*[a-z])(?=.*[A-Z]).*