I'm creating a Log in form and registration if the user is new. I need to make sure when they are registering that they must include one of these characters $, #, @, !
The challenging part is how to compare the whole password text inserted by the user with every single symbol. I know how to compare it with the whole pattern but I couldn't figure out how to compare the password with one by one of the symbols. Also the username is better to keep it only characters and numbers, how do i strict out the rest of the symbols from it? And display an error message and redbox around the textboxes in the form saying that "Password must include $, #, @, !" and if the username error says "It must have only characters and digits"
Appreciate it.