are you referring to the digit 1, or the first capture group? I’ve laid my code out as specified on the capture group exercise as follows:
let repeatRegex = /(\w+)\s\1/;
The only difference with my code is that I’m including additional non-alphanumeric characters enclosed in brackets… unless I’m missing something very obvious.
When you write the above regex, the \1 means whatever was captured by \w+ will also need to be after the space character (\s). So if the characters captured by the capture group is the string Hello,, then in order to match, part of the string would need to be Hello, Hello,, which is obviously not the case here.