I need to parse a string and extract only the email address.  What is the
best way to do this?

i.e.

$string = "Please send all email to [EMAIL PROTECTED] with a subject
line of Test.";

$email_addr would be equal to [EMAIL PROTECTED] .

Thanks.




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to