How can I get the index of the match when using std::tr1::regex_search
?
// sequence of string sub-matches
std::tr1::smatch result;
if (!std::tr1::regex_search(text, result, pattern))
return false;
I can get only the string from the std::tr1::smatch result
variable, but not the index of the match.