Regex partage l'adresse e-mail
J'ai besoin d'aide avec php regex, je veux "split" adresse email "[email protected]" pour "johndoe" et "@example.com"
Jusqu'à maintenant j'ai ceci: preg_match('/<?([^<]+?)@/', '[email protected]', $matches);
Et je reçois Array ( [0] => johndoe@ [1] => johndoe)
Alors, comment j'ai besoin de modifier la regex?
source d'informationauteur morandi3
Vous devez vous connecter pour publier un commentaire.