E-posta adresinden e-posta kolu alın Regex

0 Cevap php

I have an email address that could either be $email = "x@example.com"; or $email="Johnny <x@example.com>" I want to get $handle = "x"; for either version of the $email. How can this be done in PHP (assuming regex). I'm not so good at regex.

Şimdiden teşekkürler

0 Cevap