I want to do two replacement in a string, and i know how to write the regex in php, curently i am not familiar with c++ boost.
// Replace all doubled-up <BR> tags with <P> tags, and remove fonts.
$string = preg_replace("/<br\/?>[ \r\n\s]*<br\/?>/i", "</p><p>", $string);
$string = preg_replace("/<\/?font[^>]*>/i", "", $string);
how to write the code in c++ boost?
Thanks in advance.
All the usual warnings about parsing HTML with regexes apply.
Output: