Re: email validation string.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



# tedd@xxxxxxxxxxxx / 2007-01-20 08:53:32 -0500:
> I picked this up in my travels.
> 
> function validate_email($email)
> {
> 
>    // Create the syntactical validation regular expression
>    $regexp = 
> "^([_a-z0-9-]+)(\.[_a-z0-9-]+)*@([a-z0-9-]+)(\.[a-z0-9-]+)*(\.[a-z]{2,4})$";

One of my email addresses is
neuhauser+pgsql-general#postgresql.org@xxxxxxxxxxx

Also, "[" ip-address "]" is a valid right hand side of an email address,
e. g.:

root@[127.0.0.1]

-- 
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man.  You don't KNOW.
Cause you weren't THERE.             http://bash.org/?255991

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux