i want to have a regular expression for password validation
i am trying the following
$val="good_123*#";
if(preg_match('/^[a-z0-9\w_*#]*$/i', $val))
{
print "alpha numeric";
}
else
{
print "not alphanumeric";
}
what i want to do is, if user enters a password, then i will check whether it is alpha numeric or not.
alpha numeric for me is
it should be a combination of alphabets,digits and specialcharacters except space
i don't want user to put space in his password.But he can enter any specialcharacter.
can anyone give me a better regex for this context.....
previously i got help from martyr2 for similar type of question
hope again i will get from him
thanks

New Topic/Question
Reply




MultiQuote





|