Re: PHP preg_match_all()

From: Date: Fri, 21 Mar 2003 16:15:55 +0000
Subject: Re: PHP preg_match_all()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-140606@lists.php.net to get a copy of this message
It's in the manual: /U/ (PCRE_UNGREEDY) This modifier inverts the "greediness" of the quantifiers so that they are not greedy by default, but become greedy if followed by "?". It is not compatible with Perl. It can also be set by a (?U) modifier setting within the pattern. Jay Fitzgerald wrote:
preg_match_all("|<img src=/news/(.*)>|U", $read, $result2); can anyone fill me in if my logic is not correct and what exactly the |U is doing in this function?


« previous php.general (#140606) next »