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
If you know that the string is surrounded by < and > you can simply split out according to that.
This assumes that you will always have only one pair of < and > surrounding the string, and it will not ensure that the result is an email pattern.
Otherwise you can always read up on email regex patterns.