Hi fellow Campers,
I am stuck at Capture groups challenge
Here is my solution:
let repeatNum = "101 102 103"; let reRegex = /(\d+)\s(\d+)\s\1/; // Change this line let result = reRegex.test(repeatNum); let result1 = repeatNum.match(reRegex); console.log(result,result1);
And I admit that I don’t fully understand what’s happening and didn’t find a good tut to simplify it to me. So if you know one please attach the link.
Any help appreciated