Granted--I suppose. I changed it. There is one other use of the U modifier later in the markup table. I have made a mental note to rewrite that at some point, now that I understand this better.
Cheers, Dan On Thu, Oct 8, 2009 at 9:44 AM, Hans <[email protected]> wrote: > >> 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 -~----------~----~----~----~------~----~------~--~---
