Re: ereg match problem

From: Date: Tue, 20 Feb 2001 20:06:54 +0000
Subject: Re: ereg match problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-40798@lists.php.net to get a copy of this message
There's a code section at zend.com. I noticed someone wrote an email check routine that checks for all domains and the correct format. You might try there. rm --- "W.D." <suedeuno@yahoo.com> wrote: > 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 > > > -- > 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 > __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/

« previous php.general (#40798) next »