Re: Regex for email validation

From: Date: Wed, 27 Aug 2008 17:55:40 +0000
Subject: Re: Regex for email validation
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-278801@lists.php.net to get a copy of this message
mike a écrit :
php should have a good check built-in. see http://www.php.net/manual/en/function.filter-var.php
Argh ! Howmany times it is in ? I spent so many time to write a regex that belongs the RFC822 :-/ Because all the regex in answer here was false. They don't allow email like "Mickael Doodoo"@lupusmic.com nor mickael+doudou@lupusmic.org ; and they are valuable email addresses. Without the fact that a top level domain isn't always between two and three characters (think about .museum). -- Mickaël Wolff aka Lupus Michaelis http://lupusmic.org

« previous php.general (#278801) next »