Task: Fix Regular Expression for Matching Time Units
Task: Fix Regular Expression for Matching Time Units: a task in Terminal-Lego-15k (Harbor dataset). You need to fix a regular expression pattern that matches a whole number followed by either "seconds" or "minutes". The original regex has a bug due to incorrect operator precedence with the…
The task
You need to fix a regular expression pattern that matches a whole number followed by either "seconds" or "minutes". The original regex has a bug due to incorrect operator precedence with the alternation operator.
Part of PrimeIntellect/Terminal-Lego-15k.