Re: Perl 5's "non-greedy" matching can be TOO greedy! by Tom Christiansen- December 15, 2000 >On Fri, 15 Dec 2000, Tom Christiansen wrote:>> >As for special-case rules, I believe that my proposed modification would>> >REMOVE a special-case semantic rule, at the cost of added complexity at the>> >implementation level. >> >> What is this alleged "special-case rule" you are talking about>> There is no such thing. None. When you write pat, it means to>> find the first such pattern. There is no special case here.>The...http://www.nntp.perl.org/group/perl.perl6.language.regex/2000/12/msg558.html Re: Perl 5's "non-greedy" matching can be TOO greedy! by Deven T. Corzine- December 15, 2000 On Fri, 15 Dec 2000, Simon Cozens wrote:> On Fri, Dec 15, 2000 at 11:39:08AM -0800, Randal L. Schwartz wrote:> > Tell me how you can do that without breaking much existing code.> > Pssst, Randal, this is Perl 6, not p5p.That&39;s why I never suggested fixing it in Perl 5 -- the chance of breakingany existing code did NOT seem worth considering for something so minor.But if Perl 6 is likely to break a few things anyway, then this would be anappropriate time to consider such a...http://www.nntp.perl.org/group/perl.perl6.language.regex/2000/12/msg557.html Re: Perl 5's "non-greedy" matching can be TOO greedy! by Deven T. Corzine- December 15, 2000 On Fri, 15 Dec 2000, Tom Christiansen wrote:> >Actually, I&39;m not sure -- it&39;s conceivable that the ending point would ALSO> >move inward for a different starting point within the original match. But> >the ending point should NEVER be advanced further -- that&39;s where the> >"leftmost over nongreedy" rule should apply instead...> > Please show us your implementation for a pattern matching engine> that lets the current end-point vary. This is...http://www.nntp.perl.org/group/perl.perl6.language.regex/2000/12/msg556.html Re: Perl 5's "non-greedy" matching can be TOO greedy! by Tom Christiansen- December 15, 2000 >We may have to "agree to disagree". I shan&39;t be doing that.>I&39;m understand why people believe in>the current semantics, but I&39;ve seen no indication that anyone else>understands why I believe in these alternative semantics, or has tried.>(Disagreeing with my conclusion doesn&39;t preclude understanding where I&39;m>coming from, but nobody seems to.)You have not addressed the heat death of the universe as I andothers have illustrated. Finding all possible...http://www.nntp.perl.org/group/perl.perl6.language.regex/2000/12/msg555.html |