#include #include #include int main(void) { static const boost::regex regex("^blah\\.txt", boost::regex::perl | boost::regex::icase); const std::string teststring = "blah.txt"; const bool matched = boost::regex_match(teststring, regex); if(matched) std::cout << "regex matched" << std::endl; else std::cout << "regex did not match" << std::endl; return 0; }