diff --git a/opm/simulators/utils/ParallelFileMerger.cpp b/opm/simulators/utils/ParallelFileMerger.cpp index 7e9268f27..d302e6184 100644 --- a/opm/simulators/utils/ParallelFileMerger.cpp +++ b/opm/simulators/utils/ParallelFileMerger.cpp @@ -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_) ) {