|  | Posted by dan on 01/25/07 21:15 
On Jan 16, 10:42 am, John  <John_nos...@nnnnnnnnn.nowhere> wrote:> }function isValidEmail($email){
 >    $pattern =
 > "^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$";
 >
 >    if (eregi($pattern, $email)){
 >       return true;
 >    }
 >    else {
 >       return false;
 >    }
 
 OK, this isn't the main topic of this thread, but I have to remark
 about the above function which was posted as an example of the code
 John is using; it appears that this requires as one aspect of a "valid"
 e-mail address that it have a top-level domain that is exactly 2 or 3
 characters long, which would exclude addresses in .info, .name,
 ..museum, and some other TLDs.
 
 --
 Dan
  Navigation: [Reply to this message] |