> Sure, same idea. The U flag just makes the whole pattern lazy.

quoting
http://www.php.net/manual/en/reference.pcre.pattern.modifiers.php

 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 or by a question mark behind a quantifier
(e.g. .*?).

So the /U modifier reverses what is normal syntax. What is greedy like
(.*) becomes ungreedy, and what is ungreedy like (.*?) becomes greedy.
Which to me is a good way to get confused reading a regex pattern. So
I would stay away from this modifier.

cheers,

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to