I have the following String
First Last <first.last@email.com>
I would like to extract
"first.last"
from the email string using regex & PHP. How to go about this?
Thanks in advance!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I know the answer was already accepted, but this will work on any valid email address in the format of:
Name <identifier@domain>Most of the other posted solutions will fail on a number of valid email addresses.