I need someone to explain this answer to me because I don’t understand how it works and I don’t feel the explanation on the page is particularly clear. The number part I just don’t get.
I got this far:
/(\d+)\s\1/
but the answer is:
/^(\d+)\s\1\s\1$/;
How does it check three times? Why can’t you do:
/(\d+\s)\1\1/;