Projektarbeit Line Following Robot bei Prof. Chowanetz im WS22/23
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

lfr_socket.cpp 385B

123456789101112131415161718
  1. #include "lfr_socket.h"
  2. #include <boost/regex.hpp>
  3. #include <iostream>
  4. #include <string>
  5. int main()
  6. {
  7. std::string line;
  8. boost::regex pat( "^Subject: (Re: |Aw: )*(.*)" );
  9. while (std::cin)
  10. {
  11. std::getline(std::cin, line);
  12. boost::smatch matches;
  13. if (boost::regex_match(line, matches, pat))
  14. std::cout << matches[2] << std::endl;
  15. }
  16. }