I'm trying to strip some simple HTML tags out of a randomly selected piece of test HTML code. I'm trying to use:
But that deletes everything. What am I doing wrong?Code:boost::match_results<std::string::const_iterator> what; while(boost::regex_search(line, what, boost::regex("<[^<>]+>", oost::regex_constants::icase))) { cout<<what.str(1)<<endl; //Delete the first line from line line = what.str(2); }