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 Fitzg
I am having to edit a php script that one of our previous employees had
written and I am having a problem understanding the preg_match_all function.
preg_match_all("||U", $read, $result2);
here is what I THINK I know: The | at the beginning signifies the start of
the text to search for, then th
2 matches
Mail list logo