Correcting invalid preg with $domain