HF RL Explorer

Task: Understanding JavaScript Regex Global Flag Behavior

Task: Understanding JavaScript Regex Global Flag Behavior: a task in Terminal-Lego-15k (Harbor dataset). In JavaScript, when using regular expressions with the global ( g ) flag, the .test() method can produce unexpected alternating results. This task requires you to investigate and demonstrate…

The task

In JavaScript, when using regular expressions with the global (`g`) flag, the `.test()` method can produce unexpected alternating results. This task requires you to investigate and demonstrate your understanding of this behavior.

Part of PrimeIntellect/Terminal-Lego-15k.