I have to write javascript regex for password field to only allow some special char and space with alphanumeric, I don't want "#" to allow but below regex is allowing the # as well.
"(?=.*[\s!@\$%\^\(\)-_=])(?=.*[a-z])(?=.*[A-Z]).{14,20}"
I have to write javascript regex for password field to only allow some special char and space with alphanumeric, I don't want "#" to allow but below regex is allowing the # as well.
"(?=.*[\s!@\$%\^\(\)-_=])(?=.*[a-z])(?=.*[A-Z]).{14,20}"