In PHP, I have a string like this:
$string = \"user@domain.com MIME-Version: bla bla bla\";
How do i get the email address only? Is there a
If it's really space-separated:
php > $matches = array(); php > preg_match('/^[^ ]*/', $string, $matches); php > print_r($matches[0]); user@domain.com