I need to replace a string of the type T1.9 with the string unit19. The number of digits could vary e.g.T34.999 should become unit34999. Here is my progress:
std::regex e ("^(T\d+\.\d+)$");
std::string result (std::regex_replace(version, e, "") );
What should I write for format? Or is the approach to replace the string in one, no two, iterations, wrong?