Implement matching for valid domainnames and emails.