Tell us what’s happening:
Describe your issue in detail here.
Not sure exactly what I am doing wrong the error it is giving me is Your regex should not match the string
42\t42\t42
.
Your code so far
let repeatNum = "42 42 42";
let reRegex = /^(\d+)\s\1\s\1$/; // Change this line
let result = reRegex.test(repeatNum);
console.log(result)
Your browser information:
User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36
Challenge: Regular Expressions - Reuse Patterns Using Capture Groups
Link to the challenge: