template <typename CharT>
basic_regex_matches class
Can be used to get all subexpression captures of a regex match. Interface similar to std::
.
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)