Task: Understanding Greedy vs Non-Greedy Regular Expressions
Task: Understanding Greedy vs Non-Greedy Regular Expressions: a task in Terminal-Lego-15k (Harbor dataset). Regular expressions use quantifiers like (zero or more) to match patterns. By default, these quantifiers are greedy - they match as much text as possible. Adding ? after a quantifier makes…
The task
Regular expressions use quantifiers like `*` (zero or more) to match patterns. By default, these quantifiers are **greedy** - they match as much text as possible. Adding `?` after a quantifier makes it **non-greedy** (or lazy) - matching as little text as possible.
Part of PrimeIntellect/Terminal-Lego-15k.