try to make regular expression for mail but it not work
i want to remove all other special character or any char not allowed in email
so except 0-9 a-z A-Z - _ @
every other char must be removed .
$pass = preg_replace ('#[^a-z0-9-_.@]+#i', '', $_GET['e']);
echo $pass ;
if i try 33.php?e=frefr_-+_)(*&^%$#!@edef.fr
i get : " frefr_-_ "
and i must get : frefr_-_@edef.fr
and remove all other char from the email . thank you :)