eXorithm – Execute Algorithm: View / Run Algorithm validate_domain

Logo Beta

function validate_domain ($domain

{

  return preg_match ("/^[a-zA-Z0-9-.]+.(com|org|net|mil|edu)$/i", $domain);

}