Maike: Problem mit Regulärem Ausdruck

Beitrag lesen

Hallo Henry,

hab mal Deinen Tipp befolgt ... leider klappt das nicht so ganz. Evtl kannst Du Dir das mal anschauen:

$in__url="http://www.buchtipp.de/auswahl.php3?bereich=Top+Tips";

$in__alt_pre = file("$in__url");
for($in__x=0;$in__x<count($in__alt_pre);$in__x++)
{
$zeile .= trim($in__alt_pre[$in__x]);
}

echo $zeile;

preg_match_all ("/\d{1,}-\d{1,}-\d{1,}-\d{1,}/x",$zeile, $matches);
for ($i=0; $i< count($matches[0]); $i++) {
  echo $matches[0][$i]."<br>";
}

Vielen Dank,

Maike