And while I'm at it, consider /(.*)(.*)(.*)/, which we'll call
/ABC./ You need to be able to say all of these independently
and in conjunction with one another:
whether segment A is longest or shortest overall
whether segment B is longest or shortest overall
whether segment C is longest or shortest overall
whether segment AB is longest or shortest overall
whether segment BC is longest or shortest overall
whether segment ABC is longest or shortest overall
Imagine wanting, in /ABC/, A and B to be minimal, C to be maximal,
AB to be maximal, BC to be minimal, and ABC to be maximal.
Does this not strike fear into your heart? The very notation we'd
have to devise should itself be plenty sufficient to give you serious
pause--and that's not even considering the heat-death problem of
guaranteed worst-case behavior that the word "overall" mandates.
Be very afraid.
--tom
- Re: Perl 5's "non-greedy... brian d foy
- Re: Perl 5's "non-greedy" matching can be TOO... James Mastros
- Re: Perl 5's "non-greedy" matching can b... Deven T. Corzine
- Re: Perl 5's "non-greedy" matching c... Jarkko Hietaniemi
- Re: Perl 5's "non-greedy" matchi... Deven T. Corzine
- Re: Perl 5's "non-greedy" ma... Tom Christiansen
- Re: Perl 5's "non-greedy&quo... Nathan Torkington
- Re: Perl 5's "non-greedy... Deven T. Corzine
- Re: Perl 5's "non-greedy&quo... Deven T. Corzine
- Re: Perl 5's "non-greedy... Tom Christiansen
- Re: Perl 5's "non-greedy... Tom Christiansen
- Re: Perl 5's "non-greedy... Deven T. Corzine
- Re: Perl 5's "non-greedy" matching c... Tom Christiansen
- Re: Perl 5's "non-greedy" matching can be TOO... brian d foy
- Re: Perl 5's "non-greedy" matching can b... Deven T. Corzine
- Re: Perl 5's "non-greedy" matching c... Randal L. Schwartz
- Re: Perl 5's "non-greedy" matchi... Deven T. Corzine
- Re: Perl 5's "non-greedy" ma... Tom Christiansen
- Re: Perl 5's "non-greedy" ma... Tom Christiansen
- Re: Perl 5's "non-greedy" matching c... Uri Guttman
- Re: Perl 5's "non-greedy" matching c... Tom Christiansen
