Hi,im trying to make registration form..And i want that users can use just couple of emails to register..I will try to explain what i mean:

Im using code to check mail:

function checkEmail($str )
{
return preg_match("/^[\.A-z0-9_\-\+]+[@][gmail_\-]+([.][com_\-]+)+[A-z]{1,4}$/", $str);
}

This works fine if u trying to register for example with sample@gmail.co m..But confusing...