Re: Re: strip comments from HTML?
| From: | Petr U. | Date: | Thu, 06 May 2004 16:27:50 +0000 |
| Subject: | Re: Re: strip comments from HTML? | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-185540@lists.php.net to get a copy of this message | ||
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.
--
Petr U.