Ver original$pattern = '/[^a-z|á|à|è|é|ì|í|ù|ú|ò|ó|ï|\']/'; if(preg_match($pattern, $string)) { echo 'ES INCORRECTO';} else { echo 'ES CORRECTO';}