Replace

Along with searching, we can also alter the text if it matches our regex condition.

We'll cover the following...

std::regex_replace replaces sequences in a text that match a text pattern. It returns its result in the simple form std::regex_replace(text, regex, replString) ...