Format
Regular expressions can also specify the format of the target text. Find the implementation below.
We'll cover the following...
We'll cover the following...
std::regex_replace and std::match_results.format, in combination with capture groups enable us to format text. We can use a format string together with a placeholder to insert the value.
Here are both possibilities:
In the function call std::regex_replace(unofficial, regValues, standardText) ...