I am developing a sign-up page. In that, I want user to input password with the following format:
- Must contains a series of letters and numbers or special characters
- Order is not necessary
- Reject if the string doesn't have a letter
Example:
Valid inputs:
abc123
123abc
abc!@#
!@#abc
Invalid inputs:
abc
123
!@#
123!@#
My work:
((([A-Z]|[a-z]|[0-9])*)(([0-9])|([[\]{}\\|;:'"_+=!@#$%$%^&*()-,<\.>/\?`~])))
It matches only abc123
and abc!@#
.