diff --git a/DDG4/plugins/Geant4RegexSensitivesConstruction.cpp b/DDG4/plugins/Geant4RegexSensitivesConstruction.cpp index 6bb17fecb..c1ff49ff9 100644 --- a/DDG4/plugins/Geant4RegexSensitivesConstruction.cpp +++ b/DDG4/plugins/Geant4RegexSensitivesConstruction.cpp @@ -104,7 +104,7 @@ Geant4RegexSensitivesConstruction::collect_volumes(std::set& volumes, if( !path.empty() ) { for( const auto& match : matches ) { std::smatch sm; - bool stat = std::regex_match(path, sm, match); + bool stat = std::regex_search(path, sm, match); if( stat ) { volumes.insert(pv.volume()); ++count;