From Wiktionary, the free dictionary
From non- + greedy.
nongreedy (not comparable)
- (chiefly computing) Not greedy.
2000, Larry Wall, Tom Christiansen, Jon Orwant, Programming Perl:In modern versions of Perl, you can force nongreedy, minimal matching by placing a question mark after any quantifier.