REGEX

From: Date: Mon, 15 Jan 2001 05:50:27 +0000
Subject: REGEX
Groups: php.general 
Request: Send a blank email to php-general+get-34565@lists.php.net to get a copy of this message
Hey people! What is wrong with this code? $buffer = split("([0-9] -->)",$pagedata); $x = count ($buffer); echo $x; for ($i=0;$i<$x;$i++) { ereg("([0-9] -->)", $buffer[$i], $text); ereg_replace (" -->","", $text[1]); echo $text[1]; } Since $pagedata has 8 appearences of the REGEX I am looking for and it is only printing the first one... Help! ;-) Thank you, Rom

« previous php.general (#34565) next »