develooper Front page | perl.perl6.language.regex | Postings from December 2000

Re: Perl 5's "non-greedy" matching can be TOO greedy!

Thread Previous | Thread Next
December 15, 2000 11:39
Re: Perl 5's "non-greedy" matching can be TOO greedy!
Message ID:
>>>>> "Deven" == Deven T Corzine <> writes:

Deven> As for special-case rules, I believe that my proposed modification would
Deven> REMOVE a special-case semantic rule, at the cost of added complexity at the
Deven> implementation level.  (The cost decision of whether that added complexity
Deven> is worthwhile is a separate consideration.)

No, it would break a much higher overriding rule of "left most match
wins".  That's at the top of the chart.  You're *adding* an exception
to that.  Tell me how you can do that without breaking much existing

Deven> And I'd really appreciate it if everyone would refrain from
Deven> suggesting that I don't understand the behavior.  I understand
Deven> it fine; I just don't agree with it.  In the language of the
Deven> Supreme Court, "I respectfully dissent."  Just because I don't
Deven> perfectly agree with the semantics that were chosen doesn't
Deven> mean I don't understand them.

You don't understand the motivation, apparently.  That's what I'm

Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<> <URL:>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See for onsite and open-enrollment Perl training!

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About