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?






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



Reply via email to