preg_match_ALL('/yandsearch\?text=(.+)" target="_blank">(.+)<\/a>/isU',$text,$m);
for($i=0,$cnt=count($m[1]);$i<$cnt;$i++)
{
print 'В виде urlencode: <b>'.$m[1][$i].'</b>; В виде текста: <b>'.$m[2][$i].'</b><br>';
}
?>
СПАСИБО, СПАСИБО, СПАСИБО!
доточил под свои нужды, просто супер!