Re: code snippet to verify email addresses
| From: | Monte Ohrt | Date: | Mon, 17 Jul 2000 18:55:16 +0000 |
| Subject: | Re: code snippet to verify email addresses | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-6956@lists.php.net to get a copy of this message | ||
There are a lot of these out there, but I guess it depends on how picky
you want to get about the syntax checking.
If you want to be exact, about the most complete one I've seen is an
example from the O'Reilly book "Mastering Regular Expressions", which is
written in perl but could be easily ported to PHP.
The source is here:
http://public.yahoo.com/~jfriedl/regex/email-opt.pl
Eric Wood wrote:
>
> Anyone have a code snippet they would give me to verify that an email
> address is syntactically correct?
>
> Thanks,
> -Eric Wood
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
Monte Ohrt <monte@ispi.net>
http://www.ispi.net/