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?
while(boost::regex_search(line, what, boost::regex("<[^<>]+>", oost::regex_constants::icase)))
//Delete the first line from line
line = what.str(2);
I don't know why that was copied over incorrectly by the way. In the while statement, where I do boost::regex_constants::icase it really is correct. That's not the problem.
If anyone is curious, I fixed the problem. I was missing the (...) around the regex. I hate dumb mistakes.