Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <boost/regex.hpp>
- int main()
- {
- boost::regex test_regex("a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?"
- "a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?"
- "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
- std::string test_string("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
- if (regex_match(test_string, test_regex)) {
- std::cout << "ok\n";
- } else {
- std::cout << "no\n";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement