HF RL Explorer

Task: Replace a Regex Capture Group with Uppercase in JavaScript

Task: Replace a Regex Capture Group with Uppercase in JavaScript: a task in Terminal-Lego-15k (Harbor dataset). Create a JavaScript solution that correctly replaces regex capture groups with their uppercase equivalents. You must also explain why the naive approaches fail.

The task

Create a JavaScript solution that correctly replaces regex capture groups with their uppercase equivalents. You must also explain why the naive approaches fail.

Part of PrimeIntellect/Terminal-Lego-15k.