I have a String with html code. I would like to remove some of the html tags from it.
I've downloaded and installed the Regex++, but i cannot seem to find the correct way to implement what i need.
As far as i understand, there is no Remove, or Replace method that i can use.
I'm trying to use the Merge method ...
the regular expression that describes the tag i want to remove is:
char* pattern = "(<\\s*(span)\\s[^>]+>[^<>]*(</(span)>)?)";
boost::RegEx expr(pattern, TRUE);
then i try:
std::string result = expr.Merge(html, "");
but the format string is probably the problem.