I am trying to extract string using regex pattern in C++. In the code below I was expecting H and J and T to be extracted, but I see H as the pattern matched, am I doing