Voting

: five plus four?
(Example: nine)

The Note You're Voting On

phil dot taylor at gmail dot com
16 years ago
If you need to check for .com.br and .com.au and .uk and all the other crazy domain endings i found the following expression works well if you want to validate an email address. Its quite generous in what it will allow

<?php

$email_address
= "phil.taylor@a_domain.tv";

if (
preg_match("/^[^@]*@[^@]*\.[^@]*$/", $email_address)) {
return
"E-mail address";
}

?>

<< Back to user notes page

To Top