Hi all,
I'm trying to write a function to validate the format of an email address. If the function returns 1, it's valid, 0 and it's invalid (1/true & 0/false).
Here's what I have, but it ALWAYS returns 0/false...
function verify_email($input) {
return eregi("^[a-z0-9\-\.]+\.[a-zA-Z]{2,4}(:[a-z0-9]*)?/?([a-z0-9\-\._\?\,\'/\\\+&%\$#\=~])*$", $input);
}
Any ideas?
Thanks
Max