eXorithm – Execute Algorithm: View / Run Algorithm validate_email

Logo Beta

function validate_email ($email

{

  if (preg_match"%^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$%i"$email))

    return true;

  else

    return false;