Re: Strip emails from a document

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 26 Jan 2013 at 16:24, Tedd Sperling <tedd@xxxxxxxxxxxx> wrote:

> I thought I had a function to strip emails from a document, but I can't find
> it.
>
> So, before I start writing a common script, do any of you have a simple script
> to do this?

I have a function that will take a comma separated string consisting of emails in these formats:

 "Soap, Joe" <joe.soap@xxxxxxxxxxx>
 Joe Soap  <joe.soap@xxxxxxxxxxx>
 (Joe Soap) joe.soap@xxxxxxxxxxx

and turn them into a list where all the above examples are converted to:

 Joe Soap  <joe.soap@xxxxxxxxxxx>

but it won't handle things like:

 "joe@soap"@example.com

which I understand is also valid.

You are welcome to it if you wish.

Cheers,

--
Cheers  --  Tim

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

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux