in reply to Re^2: What are greedy and lazy matching in Perl?
in thread What is greedy and lazy Matching in perl
... if “lazy” is taken in its more general sense of “doing less work,” then ... frugal quantifiers do less work — and are in that sense “lazier” ...
But the first definition of the first citation of lazy given here suggests that rather than just passively happening to do less, "lazy" actively avoids effort: "Disinclined to action or exertion; averse to labor; ...; shirking work." This seems to me to capture the essence of the behavior of lazy quantification.
I can be happy with frugal, but I'm too lazy to type the extra characters. Non-greedy it a bit too Newspeak for me.
Give a man a fish: <%-(-(-(-<
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: What are greedy and lazy matching in Perl?
by BrowserUk (Patriarch) on Jul 30, 2015 at 10:11 UTC | |
by AnomalousMonk (Archbishop) on Jul 30, 2015 at 13:03 UTC | |
by BrowserUk (Patriarch) on Jul 30, 2015 at 13:20 UTC | |
|
Re^4: What are greedy and lazy matching in Perl?
by Anonymous Monk on Jul 30, 2015 at 10:59 UTC |