Tell us what’s happening:
I’m trying to understand why it’s necessary to put the caret (^) at the beginning and the dollar sign at the end ($). I managed to do all the challenge but those last two things I saw was in the hint and when I saw them, I stayed loading.
Your code so far
let repeatNum = "42 42 42"; let reRegex = /^(\d+)\s\1\s\1$/; // Change this line let result = reRegex.test(repeatNum); let result2 = repeatNum.match(reRegex); console.log(result); console.log(result2);
Your browser information:
User Agent is:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36.