Take a look at this example, I want to capture not just the last iteration (which is 5), but also 2, 3 and 4. It says here:
A repeated capturing group will only capture the last iteration. Put a capturing group around the repeated group to capture all iterations...
but I don't know how to do this. Since I need this in C++, I was looking for a way to get all iterations of capturing group using some regex functions in C++, but I always end up with same groups which the website finds.