Ad esempio recupero l'email...

Codice PHP:
$reg_exp_email "/Email:([^\n]+)\n/i";
preg_match_all($reg_exp_email$text$linesPREG_SET_ORDER);
$email trim($lines[0][1]);