#include <iostream>
#include <regex>
#include <string>

int main() {
	std::string mano_to_reg = "KQQQQ";
	std::regex pokar("(.)\\1{3}");
	std::smatch match;
	
	std::cout << "match  = " << std::regex_match(mano_to_reg, match, pokar) << "\n";
	std::cout << "search = " << std::regex_search(mano_to_reg, match, pokar) << "\n";
}