-----Original Message----- From: Ron Piggott [mailto:ron.piggott@xxxxxxxxxxxxxxxxxx] Sent: 13 May 2010 06:34 AM To: PHP General Subject: 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php