Re: Regex for email validation
| From: | mike | Date: | Wed, 27 Aug 2008 23:25:24 +0000 |
| Subject: | Re: Regex for email validation | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-278848@lists.php.net to get a copy of this message | ||
Honestly, I'd stick to using php's filter extension.
It -should- be the best one out there. If it is not processing
something it should, then it's a bug - submit it so all of us benefit
:)
I am tired of trying to find regexps and all that every time, I put my
stock into PHP's core when I can.
On 8/27/08, Lupus Michaelis <mickael+php@lupusmic.org> wrote:
> 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
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>