Re: Re: strip comments from HTML?

From: Date: Thu, 06 May 2004 23:43:39 +0000
Subject: Re: Re: strip comments from HTML?
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-185573@lists.php.net to get a copy of this message
Petr, et al -- ..and then Petr U. said... % % On Thu, 6 May 2004 11:57:45 -0400 % David T-G <davidtg-php@justpickone.org> wrote: % % > Am I missing something painfully obvious? % % >From http://www.php.net/manual/en/pcre.pattern.syntax.php % % However, if a quantifier is followed by a question mark, then it ceases to be % greedy, and instead matches the minimum number of times possible, so the % pattern /\*.*?\*/ does the right thing with the C comments. Gee, I guess I was :-) Thanks! % % -- % Petr U. HAND :-D -- David T-G davidtg@justpickone.org http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

« previous php.general (#185573) next »