tex_string_iterator<char> ibegin(buffer.begin(), buffer.end(), '%', '\n');
C++ (Qt) boost::regex expr("(#[^\\n\\r]*)"); std::string buffer = "AA, BB, C#DD, F\n++, D #Perl\r"; tex_iterator<std::string::const_iterator> iter(buffer.begin(), buffer.end(), expr); tex_iterator<std::string::const_iterator> end(buffer.end(), buffer.end(), expr); for (; iter != end; ++iter) std::cout << *iter;
C++ (Qt)tex_iterator<std::string::const_iterator> iter(buffer.begin(), buffer.end(), expr);