18 lines
385 B
C++
18 lines
385 B
C++
|
#include "lfr_socket.h"
|
||
|
#include <boost/regex.hpp>
|
||
|
#include <iostream>
|
||
|
#include <string>
|
||
|
|
||
|
int main()
|
||
|
{
|
||
|
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 << matches[2] << std::endl;
|
||
|
}
|
||
|
}
|