diff --git a/DDG4/plugins/Geant4RegexSensitivesConstruction.cpp b/DDG4/plugins/Geant4RegexSensitivesConstruction.cpp index 6bb17fecbe96cf3c1e314473d78103021aac380d..c1ff49ff9ee605ff017565b2e554507980e66147 100644 --- a/DDG4/plugins/Geant4RegexSensitivesConstruction.cpp +++ b/DDG4/plugins/Geant4RegexSensitivesConstruction.cpp @@ -104,7 +104,7 @@ Geant4RegexSensitivesConstruction::collect_volumes(std::set<Volume>& 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;