Advertisement
Guest User

Untitled

a guest
Nov 14th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1. #include <boost/regex.hpp>
  2. #include <string>
  3. #include <iostream>
  4.  
  5. int main()
  6. {
  7.   std::string s = "Boost Libraries";
  8.   boost::regex expr{"\\w+\\s\\w+"};
  9.   std::cout << std::boolalpha << boost::regex_match(s, expr) << '\n';
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement