is_valid_email_address function
/* Regex for validating email address */ function is_valid_email_address($email_address) { if (ereg("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,6})$",$email_address) ) { return TRUE; } else { return FALSE; } }