If I’m not mistaken your regex is currently the same as /\d+\s\d+\s\d+/, which is not quite right because as long as it finds that matter in a given, anywhere in that given string, it’s a match. So your RegEx expression would match this “nyanpasu 42 42 42”, or this “42 42 42 nyanpasu”, or this “42 42 42 42 42 42 42 42 42” (I think you get the idea)—because it doesn’t care what comes before or after your RegEx, as long as it finds that pattern it’s a match.
I recommend quickly going through the list of RegEx challenges that comes before the one you are doing to get… inspired!
I think I have to disagree with the disagreement. d: Reference for the regular expression \n from the MDN Web Docs:
Where n is a positive integer. A back reference to the last substring matching the n parenthetical in the regular expression (counting left parentheses).
There is only one parenthetical in /(\d+)\s\1\s\1/, so you can’t possibly use \2. For example: