2 #include "cetlib/split_by_regex.h" 7 std::regex
const re_dot{
"\\."};
8 std::regex
const re_index{
"\\[(\\d+)\\]"};
13 std::vector<std::string>
16 std::vector<std::string> parents;
17 for (
auto const& key : cet::split_by_regex(k, re_dot))
18 for (
auto const& token :
19 cet::split_by_regex(std::regex_replace(key, re_index,
",$1"),
","))
20 parents.push_back(token);
24 return std::vector<std::string>(parents.begin() + 1, parents.end());
std::vector< std::string > get_parents(std::string const &k)