Codice PHP:
$testo preg_replace('/([a-zA-Z0-9\._-]{3,})(@{1}[a-zA-Z0-9\._-]{3,})(\.{1}[a-zA-Z]{2,4})/i''[email="$1$2$3"]$1$2$3[/email]',$testo);