Task: Return Positions of Regex Matches in JavaScript
Task: Return Positions of Regex Matches in JavaScript: a task in Terminal-Lego-15k (Harbor dataset). Implement a JavaScript solution that finds all matches of a regular expression pattern in a string and returns both the matched text and the starting character positions of each match.
Part of PrimeIntellect/Terminal-Lego-15k.