Task: Replace Captured Groups in Strings Using JavaScript Regex
Task: Replace Captured Groups in Strings Using JavaScript Regex: a task in Terminal-Lego-15k (Harbor dataset). Write a JavaScript program that demonstrates how to replace only a captured group within a regex match, rather than replacing the entire match.
Part of PrimeIntellect/Terminal-Lego-15k.