>> More generally, it seems to me that you're hung up on the description >> of "*?" as "shortest possible match". That's an ambiguous >Yup, that's a bit confusing. It's really "start matching as soon as >possible, and stop matching as soon as possible". (The usual greedy >one is, of course, "keep matching as long as possible".) The initial >invariant part, "start as soon as possible", is the de facto and de >jure (at least POSIX 1003.2, but probably also Single Unix) >definition, and therefore rather non-negotiable. It's like people who write /^.*fred/ instead of /.*fred/. They are forgetting something critical: where the Engine starts the serach. --tom
- Re: Perl 5's "non-greedy" matching can be TO... Deven T. Corzine
- Re: Perl 5's "non-greedy" matching can ... Nathan Torkington
- Re: Perl 5's "non-greedy" matching ... Jarkko Hietaniemi
- Re: Perl 5's "non-greedy" match... Nathan Torkington
- Re: Perl 5's "non-greedy" match... Deven T. Corzine
- Re: Perl 5's "non-greedy" matching ... Deven T. Corzine
- Re: Perl 5's "non-greedy" match... Jonathan Scott Duff
- Re: Perl 5's "non-greedy" match... Deven T. Corzine
- Re: Perl 5's "non-greedy" match... Kevin Walker
- Re: Perl 5's "non-greedy" match... Jarkko Hietaniemi
- Re: Perl 5's "non-greedy" match... Tom Christiansen
- Re: Perl 5's "non-greedy" match... Kevin Walker
- Re: Perl 5's "non-greedy" match... Bart Lateur
- Re: Perl 5's "non-greedy" match... Deven T. Corzine
- Re: Perl 5's "non-greedy" match... Tom Christiansen
- Re: Perl 5's "non-greedy" match... Deven T. Corzine
- Re: Perl 5's "non-greedy" matching can ... Randal L. Schwartz
- Re: Perl 5's "non-greedy" matching ... Jeff Pinyan
- Re: Perl 5's "non-greedy" match... Deven T. Corzine
- Re: Perl 5's "non-greedy" match... Deven T. Corzine
- Re: Perl 5's "non-greedy" matching ... Deven T. Corzine