regular expression
| From: | Robert Kornfeld | Date: | Wed, 07 Apr 2004 08:31:30 +0000 |
| Subject: | regular expression | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-182601@lists.php.net to get a copy of this message | ||
hey, professionals out there:
i need to write a parser for an email-header to retrieve the email of the
'To:'-field.
there are 2 possibilities:
'To: foo@foo.com' or
'To: first foo <foo@foo.com>'
i would only need the email-adress!
does anyone know the regular expression that can handle both possibilities?
(i give up!)
thanx!