I need to extract the email address out of this mailbox string. I thought of str_replace but the display name and the email address is not static so I don’t kno
str_replace
I'm coming from a time and from projects where Regex was to expensive for easy string extraction.
$s = 'My name '; $s = substr(($s = substr($s, (strpos($s, '<')+1))), 0, strrpos($s, '>'));
Results in
email@gmail.com