LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
Name.cc
Go to the documentation of this file.
1 #include "fhiclcpp/types/Name.h"
2 
3 #include <regex>
4 
5 namespace {
6  std::regex const re{"\\[|\\]"};
7 }
8 
9 namespace fhicl {
10  std::string
11  get_regex_replace_str(std::string const& str)
12  {
13  return std::regex_replace(str, re, "\\$&");
14  }
15 }
parameter set interface
std::string get_regex_replace_str(std::string const &str)
Definition: Name.cc:11