$f = file_get_contents('http://mail.ru/index.php'); preg_match_all( '/<b>(.*)<\/b>/iUs' , $f, $matches); echo $matches[0][0];