I'm trying to develop a regex expression for a password validation program that I am making with JavaScript.
Requirements
The password must be at least seven characters in length.
Must contain at least one
- upper case letter (A-Z)
- lower case letter (a-z)
- number (0-9)
- special symbol (!?#@)
I'm struggling to find the right regex expression to check for all of those components. The password doesn't have to be in any specific order. I thought regex would be the easiest method for password verification, but now I'm not so sure.
Thanks in advance.