Task: Python Non-Greedy Regular Expressions
Task: Python Non-Greedy Regular Expressions: a task in Terminal-Lego-15k (Harbor dataset). In Python regular expressions, quantifiers like , + , and ? are greedy by default, meaning they match as much text as possible. This can lead to unexpected results when trying to match the shortest possible…
The task
In Python regular expressions, quantifiers like `*`, `+`, and `?` are **greedy** by default, meaning they match as much text as possible. This can lead to unexpected results when trying to match the shortest possible string.
Part of PrimeIntellect/Terminal-Lego-15k.