Task: Regular Expression - Stop at First Match
Task: Regular Expression - Stop at First Match: a task in Terminal-Lego-15k (Harbor dataset). When using regular expressions, the quantifier is greedy by default, meaning it will match as much text as possible. This often causes problems when you want to extract only the first occurrence of a…
The task
When using regular expressions, the `*` quantifier is **greedy** by default, meaning it will match as much text as possible. This often causes problems when you want to extract only the first occurrence of a pattern.
Part of PrimeIntellect/Terminal-Lego-15k.