Reuse Patterns Using Capture Groups ( RegEx group check )

Your code so far


let repeatNum = "42 42 42";
let reRegex = /(\d+)\s\1\s\1/; // Change this line
let result = reRegex.test(repeatNum);

I can’t pass only Your regex should not match "42 42 42 42". But in my RegEx checker I receive this feedback:


Can someone elaborate this please.

Your browser information:

User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0.

Link to the challenge: