daily pastebin goal
22%
SHARE
TWEET

Untitled

a guest Feb 19th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. boost::regex tmpCommentRegex("(^\s*)\*+");
  2.  
  3. for (std::vector<std::string>::iterator vect_it =
  4.     tmpInputStringLines.begin(); vect_it != tmpInputStringLines.end();
  5.     ++vect_it) {
  6.  
  7.     boost::match_results<std::string::const_iterator> tmpMatch;
  8.     if (boost::regex_match((*vect_it), tmpMatch, tmpCommentRegex,
  9.         boost::match_default) == 0) {
  10.  
  11.         std::cout << "Found comment " << (*vect_it) << std::endl;
  12.     } else {
  13.         std::cout << "No comment" << std::endl;
  14.     }
  15. }
  16.    
  17. * Script 7
  18. [P]%OMO      * change
  19. [P]%QMS      * change
  20. [T]%OMO      * change
  21. [T]%QMM      * change
  22. [S]%G1       * Resume
  23. []
  24.    
  25. Found comment * Script 7
  26. No comment
  27. No comment
  28. No comment
  29. No comment
  30. No comment
  31. No comment
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top