Tell us what’s happening:
I read the capture group explanations a few times but I still don’t understand how does the back slash 1 mean at the end of a capture group. I also tried to run thru a few examples but still unable to figure out what it is trying to do. Is there a better explanation I can find elsewhere? Solving this lesson is less of a concern, understanding the concept is more important.
Your code so far
let repeatNum = "42 42 42"; let reRegex = /(\d+\s*)\1/; // Change this line let result = reRegex.test(repeatNum); console.log(repeatNum.match(reRegex));
Your browser information:
User Agent is:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:64.0) Gecko/20100101 Firefox/64.0.