ereg

From: Date: Fri, 11 Jan 2002 03:55:40 +0000
Subject: ereg
Groups: php.general 
Request: Send a blank email to php-general+get-80152@lists.php.net to get a copy of this message
This is my code : ereg("<!--start-->(.*)<!--stop-->", $lineofhtml, $output); The problem is that, with <!--start-->(.*)<!--stop--> it matches everthing from the first <!--start--> to the last <!--stop-->... hence it appears its all in one array... what I need to do is tell it to stop at the first <!--stop--> and I can't figure out how to do that... any ideas? Regards, Kunal Jhunjhunwala

« previous php.general (#80152) next »