to search for:
anyNumberOfAnyChars2
Thus, we search for XML tags (1 means: the same as the first matched substring).
In this example, we use this regular expression by a different interface that iterates over matched character sequences. For this reason, instead of passing the character sequence as a whole, we pass a range of the corresponding elements. We start with the range of all characters, using cbegin() and cend() of the string we search in: