Codice PHP:
$stringa "nome.del.file.html";
preg_match_all("/^.*(\\..*)$/",$stringa,$matches);

//$matches[1][0] contiene .html