Re: using preg_match to extract information from pop3
| From: | Henry Grech-Cini | Date: | Tue, 04 Mar 2003 16:54:50 +0000 |
| Subject: | Re: using preg_match to extract information from pop3 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-138132@lists.php.net to get a copy of this message | ||
Hi All,
This has to be easy to do using preg_match!
Can no one spare a minute of their time?
Henry
"Henry Grech-Cini" <henry@teacake.force9.co.uk> wrote in message
news:20030304141038.67345.qmail@pb1.pair.com...
> Hi All,
>
> I know that you will probably tell me to RTFM but I have (several times)
and
> I cannot quite understand it!
>
> So failing that I turn to you for help.
>
> I know that this is very trivial but please humour me.
>
> I have a line containing "From: Henry< henry @ zzzzzzzz.com >"
> (please ignore any spaces between the angled braces < >, they are just to
> fool outlook express)
>
> And I want to extract the name and the email address into the variables
> $name $email. I suspect using preg_match?
>
> TIA
>
> Henry
>
>