let repeatNum = "42 42 42";
let reRegex = /(\d+)\s\1\s\1/; // Change this line
let result = reRegex.test(repeatNum);
let test = repeatNum.match(reRegex);
I tested it using console.log, The challenge says :
// running tests
Your regex should match “100 100 100”.
Your regex should not match “42 42 42 42”.
// tests completed
???!
let repeatNum = "42 42 42 42 42 42 42 42 42 42 42 42";
let reRegex = /(\d+)\s\1\s\1/g; // Change this line
let result = reRegex.test(repeatNum);
let test = repeatNum.match(reRegex);
console.log(test);
let repeatNum = "100 100 100";
let reRegex = /^(\d+)\s\1\s\1$/; // Change this line
let result = reRegex.test(repeatNum);
let test = repeatNum.match(reRegex);
console.log(result);