Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- boost::regex tmpCommentRegex("(^\s*)\*+");
- for (std::vector<std::string>::iterator vect_it =
- tmpInputStringLines.begin(); vect_it != tmpInputStringLines.end();
- ++vect_it) {
- boost::match_results<std::string::const_iterator> tmpMatch;
- if (boost::regex_match((*vect_it), tmpMatch, tmpCommentRegex,
- boost::match_default) == 0) {
- std::cout << "Found comment " << (*vect_it) << std::endl;
- } else {
- std::cout << "No comment" << std::endl;
- }
- }
- * Script 7
- [P]%OMO * change
- [P]%QMS * change
- [T]%OMO * change
- [T]%QMM * change
- [S]%G1 * Resume
- []
- Found comment * Script 7
- No comment
- No comment
- No comment
- No comment
- No comment
- No comment
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement