vi posto il link da cui ho preso la regex
il post comincia con "It depends on what you mean by best: If you're talking about catching every valid email address use the following:" commento numerato (18)
http://stackoverflow.com/questions/2...mail-addresses
in sostanza vorrei usare tale regex verificandola con il codice seguente
non badate a $this-> (è contenuto in una classe e regexEmail01 è un suo membro), mentre $variableField è l'indirizzo email passato dall'utente.Codice PHP:
if (!preg_match($this->regexEmail01, $variableField)) {
$this->valid = "no";
} else {
return($variableField);
}
qualcuno sa dirmi se riesce a farlo? grazie