#include <string>
      #include <regex>
      
      const regex pattern("(0+1+0+)");
      const string word("abc00010def011110ghi");
      cout << "matched whole string: " << boolalpha << regex_match(word, pattern) << endl;
      

      Cpp language logoRegexp match

      Codiga's C++ Recipes

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.