RE: [PHP] Parse question
| From: | Lawrance Shepstone | Date: | Thu, 13 May 2010 08:43:54 +0000 |
| Subject: | RE: [PHP] Parse question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-305146@lists.php.net to get a copy of this message | ||
-----Original Message-----
From: Ron Piggott [mailto:ron.piggott@actsministries.org]
Sent: 13 May 2010 06:34 AM
To: PHP General
Subject: [PHP] Parse question
If $message_body contains:
$message_body="You are subscribed using user@domain. To update";
How do I capture just the e-mail address?
Ron
______________________________________________________________________________
Regular Expressions ... They're great at this sort of thing!
I'd suggest starting here:
http://www.regular-expressions.info/email.html
Then take a look at the PHP regular expression manual:
http://www.php.net/manual/en/book.pcre.php
Have fun!
Lawrance