ereg help
Posted: Mon Aug 18, 2008 9:35 pm
Hello,
I'm getting the error:
What is wrong with my ereg expression?
I'm getting the error:
That line is:Warning: ereg() [function.ereg]: Invalid range end in /include/classes/c_user.php on line 128
Code: Select all
if (ereg('^[a-zA-Z0-9\-_]+$', $username)) {
$this->username = $username;
return true;
}