Re: Re: strip comments from HTML?

From: Date: Thu, 06 May 2004 15:57:45 +0000
Subject: Re: Re: strip comments from HTML?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-185537@lists.php.net to get a copy of this message
Rob, et al -- ..and then Rob Ellis said... % .. % you can make the .* less greedy... % % $text = preg_replace('/<!--.*?-->/', '', $text); How does that make it ungreedy? The only thing I see relating question marks and greediness is that a question mark makes part of a regexp with a /U modifier (otherwise not greedy) back into a greedy portion. Am I missing something painfully obvious? % % - rob TIA & HAND :-D -- David T-G davidtg@justpickone.org http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

« previous php.general (#185537) next »