On Thu, 6 May 2004 11:57:45 -0400
David T-G <[EMAIL PROTECTED]> 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.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to