reluctant
adj.-
1 defiant (adj.) C2 Proficiency Archaic Literaryshowing strong resistance or being difficult to control.
exhibiting resistance, defiance, or a refractory nature.
ExampleThe reluctant horse refused to move even when offered a carrot.
ExampleThe poet described the reluctant soil of the wasteland, which resisted every attempt at cultivation by the weary farmers.
-
2 non-greedy matching (adj.) C1 Advanced Technical Computingin computer programming, matching as little text as possible when searching.
describing a quantifier that matches the shortest possible string; also known as non-greedy.
ExampleYou should use a reluctant quantifier if you only want to find the first match.
ExampleBy default, the engine uses greedy matching, but you can switch to a reluctant approach to capture the smallest possible substring.
- non greedy
- lazy
Learned borrowing from Latin reluctāns, present participle of reluctor (“to struggle against, oppose, resist”), from re- (“back”) + luctor (“to struggle”).