Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <boost/regex.hpp>
- #include <string>
- #include <iostream>
- int main()
- {
- std::string s = "Boost Libraries";
- boost::regex expr{"\\w+\\s\\w+"};
- std::cout << std::boolalpha << boost::regex_match(s, expr) << '\n';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement