ereg match problem
| From: | W.D. | Date: | Tue, 20 Feb 2001 19:37:40 +0000 |
| Subject: | ereg match problem | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-40791@lists.php.net to get a copy of this message | ||
I'm testing email address, but want to test not only characters but the @
sign and for .com, .net, .org, or .tv. How would I include all of these?
$test = $email
if( ereg("[a-zA-Z0-9]+)\@([a-zA-Z0-9]+)\.com how would I include the
rest?
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com