Key, value in validation.items: if validation[key] == 1: data[key] = re.sub(r'[^\w\s@.]', '', FILTER_SANITIZE_EMAIL) elif validation[key] == 3: data[key] = re.sub(r'[^\w\s]', '', data[key]) GeneralSanitization = False elif validation[key] == 4: data[key] = re.sub(r'[^0-9]', '', data[key]) GeneralSanitization = False elif validation[key] == 5: data[key] = re.sub(r'[^\w\s]', '', data[key]) General = False elif validation[key] == 6: data[key] = re.sub(r'[^\w\s@.]
spam lang_mismatch quality