Regexp match

    0

    0

    Giovanny Gongora

    Codiga's C++ Recipes
    #include <string>
    #include <regex>
    
    const regex pattern("(0+1+0+)");
    const string word("abc00010def011110ghi");
    cout << "matched whole string: " << boolalpha << regex_match(word, pattern) << endl;
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.