je suis en train d'écrire un analyseur robots.txt en C++ce qui est erroné avec mon C++ match regex
boost::regex exrp("^User-agent:\s*(.*)");
boost:: match_results<string::const_iterator> what;
if(boost::regex_search(robots, what, exrp))
{
string s(what[1].first, what[1].second);
cout<< s;
}
cela devrait correspondre au useragent avec le nom * mais il renvoie toutes les données
"données" est déjà pluriel. –