Guest User

Untitled

a guest
Sep 18th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. No matches with c 11 regex
  2. #include <iostream>
  3. #include <string>
  4. #include <regex>
  5.  
  6. using namespace std;
  7.  
  8. int main()
  9. {
  10. string line("test");
  11. regex pattern("test",regex_constants::grep);
  12. smatch result;
  13.  
  14. bool ret(false);
  15. ret = regex_search(line,result,pattern);
  16. cout << boolalpha << ret << endl;
  17. cout << result.size() << endl;
  18. return 0 ;
  19. }
  20.  
  21. false
  22. 0
Add Comment
Please, Sign In to add comment