Hi!
I have a problem regarding the password validation. I want my users to input a password consisting of alphanumeric characters which is at least 6 characters and must consist of upper and lower chars. Here is my code
if (!eregi('(?=.\d)(?=.[a-z])(?=.*[A-Z]).{6,16}$',$reg_password))
{
$error_msg[] = "<font color='red'>Error! </font>Invalid password format.";
}
It gives out an error message:
Warning: eregi() [function.eregi]: REG_BADRPT in ...
I hope someone will be kind enough to help me with my problem. Thanks