Regex1 boost example2 boost example2 1.소스 #include #include #include int main( int argc , char ** argv ) { std::string line; boost::regex pat( "^Subject: (Re: |Aw: )*(.*)" ); while (std::cin) { std::getline(std::cin, line); boost::smatch matches; if (boost::regex_match(line, matches, pat)) std::cout 2016. 8. 1. 이전 1 다음