cpp/regex/match results/position

Returns the position of the first character of the specified sub-match.

If, the position of the first character of the entire matched expression is returned.

If, the position of the first character of the nth sub-match is returned.

if, a position of the first character of the unmatched match is returned.

Return value
The position of the first character of the specified match or sub-match.