Ver originalpreg_match('/\<title\>(.*?)\<\/title\>/s', $page, $match); $titulo = $match[1]; //$match[0] echo $titulo;