Regex Question (Regular Expressions: Reuse Patterns Using Capture Groups) BETA

@chris-isnofun I struggled with this too and also tried using 2 groups, even 3 groups 2 with a space and a final group with no space to signify the end of the white space sequence, faffed around with it for ages, then had to resort to the forums, and tbh I still don’t really understand the answer… i get the beginning part:(\d+)\s\1 the group were matching, but then i don’t understand how this translates to check for the group 3 times \s\1$ what if the challenge was different and we wanted to check 4 times, or just two times?

2 Likes