I've read the manual. I've checked the example. But I don't get it.
Code above is not working. I get nothing on cout.Code:boost::regex expres("([0-9]+)");
boost::cmatch matches;
boost::regex_match(buff.c_str(), matches, expres);
for (unsigned int i = 1; i < matches.size(); i++)
{
std::string match(matches[i].first, matches[i].second);
cout << (match + ";") << endl;
}
buff is a string retrieved by curl from www.google.com. It contains the code. And there are numbers in it.