I have a script that uses the following eregi to check for a valid email
address:
if (!eregi("^[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,4}$", $email)) {
print_error("your <b>email address</b> is invalid");
}
While this works fine on most email addresses, it will not allow anyone
who has more than one dot in their domain name (like me@myisp.co.uk) to
submit. How can I change this to allow multiple dots in the domain?
Thanks.