std::regex_replace use $n for referencing and not \n.

This commit is contained in:
Markus Blatt 2022-01-27 17:20:35 +01:00
parent 710d648eda
commit 4407fdd3db

View File

@ -54,7 +54,7 @@ void ParallelFileMerger::operator()(const fs::path& file)
if ( std::regex_match(filename, matches, fileWarningRegex_) )
{
std::string rank = std::regex_replace(filename, fileWarningRegex_, "\\1");
std::string rank = std::regex_replace(filename, fileWarningRegex_, "$1");
if( std::regex_match(filename, logFileRegex_) )
{