Hi
Little confused. How to most simple output all matches. For ex. .m_airport_map contains LSZA, LSZB, LSZH and many more. Now I want to
show by giving L as name all starting with L, giving LS all starting with LS etc.
Many thanks
for (auto it = test.m_airport_map.begin(); it != test.m_airport_map.end(); it++)
{
auto mapEntry = (*it);
// std::cout << mapEntry.first << std::endl;
std::smatch m;
std::regex e ("(name.c_str())(.*)");
std::regex_match ( mapEntry.first, m, e );
std::cout << "matches:" << std::endl;
for (std::smatch::iterator it = m.begin(); it!=m.end(); ++it) {
std::cout << *it << std::endl;
}
}