Extracting a substring using Regex
social.msdn.microsoft.com › Forums › en-USSep 02, 2014 · How do I extract the substring using regex? Each pair of (unescaped) parentheses in the regular expression defines a capture group. Functions like std::regex_match fill in a match_results object, which in turn holds an array of sub_match objects, one for each such group (and an extra one for the whole match).