Task: Non-Greedy (Lazy) Regex Matching
Task: Non-Greedy (Lazy) Regex Matching: a task in Terminal-Lego-15k (Harbor dataset). In regular expressions, quantifiers like , + , and {n,m} are greedy by default — they match as much text as possible. A common challenge is extracting the smallest possible match instead of the largest. This is…
The task
In regular expressions, quantifiers like `*`, `+`, and `{n,m}` are **greedy** by default — they match as much text as possible. A common challenge is extracting the **smallest possible match** instead of the largest. This is accomplished using **non-greedy (lazy) quantifiers** by appending `?` after the quantifier…
Part of PrimeIntellect/Terminal-Lego-15k.