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

This commit is contained in:
Markus Blatt committed 2022-01-27 17:22:09 +01:00
1 parent 710d648eda
commit 4407fdd3db
1 file changed
+1 -1
+1 -1
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_) )
{