Re: Regex for email validation
| From: | tedd | Date: | Wed, 27 Aug 2008 18:10:56 +0000 |
| Subject: | Re: Regex for email validation | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-278809@lists.php.net to get a copy of this message | ||
At 7:55 PM +0200 8/27/08, Lupus Michaelis wrote:
mike a écrit :Or TLD's like: http://tedd.mobi/ Things are a changing fast. Just wait until you start designing stuff for cell phones. Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.comphp should have a good check built-in. see http://www.php.net/manual/en/function.filter-var.phpArgh ! 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).