need some help with EREGI please

From: Date: Mon, 16 Jul 2001 00:20:29 +0000
Subject: need some help with EREGI please
Groups: php.general 
Request: Send a blank email to php-general+get-57995@lists.php.net to get a copy of this message
Hi all, I know I'm doing something dumb but I keep missing it. What I am trying to do is parse through some text and pick up starting at each "<font" and ending with each </a>. Starting at "<a href" and ending with "</a>" works fine. I thought I read the eregi docu thoroughly but maybe not ?? Any help would be appreciated! Andre //get a line $line = fgets($page, 1024); //loop to get all news page links /* while(eregi("<a.*href=\"(.+)\".*>.*<\/a>", $line, $match)) */ while(eregi("<font.*<\/a>", $line, $match)) { //print out the news link print("<LI>"); $link = ereg_replace("HREF=\"", "HREF=\"http://that domain . com/", $match[0]); print($link); print("<BR>\n");

« previous php.general (#57995) next »