I am trying to use ereg to check on a variable with this code
ereg("([a-zA-Z0-9!@#$%&])",$passwd)
this works but now I have to check on the length,
I know this is also possible with ereg and I'd like to just use ereg for in and not make another check with
strlen($passwd) > 5 && strlen($passwd)<14
ereg("(([a-zA-Z0-9*!@#$%&]{5,14}))",$passwd)
is working for the first check if it contains any other that the characters in the check or is less then 5 chars.
But it doesn't get the last char check right.....
I can put in as much text in as possible and the check wil let me through.