Reject some?

From: Date: Mon, 16 Dec 2002 18:46:57 +0000
Subject: Reject some?
Groups: php.general 
Request: Send a blank email to php-general+get-128448@lists.php.net to get a copy of this message
What Im trying to do is, reject all email address strings ending in yahoo.com, except 08701@yahoo.com. Im trying -> <?php if (preg_match('/[^08701@yahoo.com|yahoo.com]$/', '08702@yahoo.com')) { echo 'match found'; } else { echo 'match not found'; } ?> The search pattern must also be capable of expanding to something like -> ^08701@yahoo.com|yahoo.com|^foo@hotmail|hotmail.com Basically what Im trying to perform is to reject all email address strings ending in either yahoo.com or hotmail.com, except strings ending in 08701@yahoo.com or foo@hotmail.com. Thanks for any insight you may provide... -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/

« previous php.general (#128448) next »