Re: Perl 5's "non-greedy" matching can be TOO greedy!
[email protected] ((Randal L. Schwartz)) 14 Dec 2000 15:37:55 -0800
| Newsgroups | perl.perl6.language.regex |
|---|---|
| Message-ID | <[email protected]> |
>>>>> "Deven" == Deven T Corzine <[email protected]> writes: Deven> I'm not pushing for this to be fixed in Perl 5; it's been out Deven> there long enough, and there's no point worrying about it in Deven> that version. But that doesn't mean that the same design flaw Deven> should be kept in Perl 6, when some minor incompatibilities are Deven> to be expected... But *I* don't see it as a design flaw. I predicted precisely what was going to be matched. Perhaps it's merely a matter of understanding and experience. I think the current definition is precisely predictable in all circumstances. If you start adding special-case rules, you'll lose. Big time. No bug. Just a feature you don't (yet) understand. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[email protected]> <URL:http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!