template <typename CharT>
scn::v3::basic_regex_matches class

Can be used to get all subexpression captures of a regex match. Interface similar to std::vector<std::optional<basic_regex_match<CharT>>>.

auto result =
    scn::scan<scn::regex_matches>("abc123", "{:/[(a-z]+)([0-9]+)/}");
// result->value() has three elements:
//  [0]: "abc123" (entire match)
//  [1]: "abc" (first subexpression match)
//  [2]: "123" (second subexpression match)