24html = file_get_contents("page"); $html = explode("\n", $html); foreach ($html as $h) { if ($zz) { do what u want with the line unset($zz); } if (preg_match()) { $zz = 1; } }