What Im trying to do is, reject all email address strings ending in yahoo.com, except [EMAIL PROTECTED]
Im trying ->

if (preg_match('/[^[EMAIL PROTECTED]|yahoo.com]$/', '[EMAIL PROTECTED]'))
echo 'match found';
echo 'match not found';


The search pattern must also be capable of expanding to something like ->
^[EMAIL PROTECTED]|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 [EMAIL PROTECTED] or [EMAIL PROTECTED]

Thanks for any insight you may provide...

Gerard Samuel

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

Reply via email to