in reply to Is greediness irrelevant when matching whole lines?

Correct. Greediness determines how it matches, not whether it matches. Greedy and non-greedy regexes will either both match, or neither.

As you allow only one way to match, due to anchors etc., greediness can barely play any role — apart from how subpatterns match. Do you even care about subpatterns?

  • Comment on Re: Is greediness irrelevant when matching whole lines?