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