Tell us what’s happening:
using capture groups, looking for numbers repeated 3 times, separated by spaces, but It doesnt work
Your code so far
let repeatNum = "42 42 42";
let reRegex = /(\d{3}\s)\1\2/; // Change this line
let result = repeatNum.match(reRegex)
console.log(result)
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36 OPR/62.0.3331.119
.
Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/regular-expressions/reuse-patterns-using-capture-groups/