Tell us what’s happening:
it shouldn’t match 42 42 42 42 …I have added only 2 spaces not 3 in code (in reRegex ) then why it still matches I don’t understand.
Error :Your regex should not match the string
42 42 42 42
Your code so far
let repeatNum = "42 42 42";
let reRegex = /(\d+) \1 \1/; // Change this line
let result = reRegex.test(repeatNum);
Challenge: Regular Expressions - Reuse Patterns Using Capture Groups
Link to the challenge: