5 #include <boost/algorithm/string.hpp>
14 return std::regex_match(
pattern, rexp);
21 boost::replace_all(
regexp,
"*",
".*");
22 boost::replace_all(
regexp,
"?",
".");
26 std::vector<std::vector<std::string>::const_iterator>
regexMatch(std::vector<std::string>
const&
strings,
27 std::regex
const&
regexp) {
28 std::vector<std::vector<std::string>::const_iterator>
matches;
29 for (std::vector<std::string>::const_iterator
i =
strings.begin(), iEnd =
strings.end();
i != iEnd; ++
i) {
30 if (std::regex_match((*
i),
regexp)) {
37 std::vector<std::vector<std::string>::const_iterator>
regexMatch(std::vector<std::string>
const&
strings,