I get the following error:
Warning: eregi(): REG_BADBR in /path/to/class_email.php on line 21
Fail
The code is
if (!eregi("^([a-z0-9]+)([._-]([a-z0-9]+))*[@]([a-z0-9]+)([._-]([a-z0-9]+))*[.]([a-z0-9]){1|}([a-z0-9])?$", $email)) {
return array("1", "Invalid Contact Email Address: $email");
}
What does this error mean? I can't find info on it.
And why does the same eregi() work elsewhere?