Whe I had to create CMS in PHP I created simple unescape html
function that looked like this:
function unescape($s) {
$s= preg_replace('/%u(....)/', '&#x$1;', $s);
$s= preg_replace('/%(..)/', '&#x$1;', $s);
return $s;
}
How to translate it into C++ using Boost.Regex?