troubleshooting Question

get email from a string

Avatar of Pedro Chagas
Pedro ChagasFlag for Portugal asked on
PHPRegular Expressions
4 Comments2 Solutions217 ViewsLast Modified:
Hi E's, I want get email from a string.
$string = "=?iso-8859-1?Q?João_Pedro?= <>";
In the end I need the email inside the variable, like $mail =;

The string can be like above example or:
$string = "pedro chagas <>";

Regards, JC
Join our community to see this answer!
Unlock 2 Answers and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros