-----Original Message-----
From: Ron Piggott [mailto:ron.pigg...@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 u...@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


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

Reply via email to