cpp/regex/match results/length

Returns the length of the specified sub-match.

If, the length of the entire matched expression is returned.

If, the length of nth sub-match is returned.

if, a length of the unmatched match is returned.

The call is equivalent to.

Return value
The length of the specified match or sub-match.