#include <iostream>
#include <string>
#include <regex>
int main() {
std::string code = "Boolean flag = true; // Boolean type";
std::regex pattern("\\bBoolean\\b");
std::string result = std::regex_replace(code, pattern, "bool");
std::cout << result << std::endl;
}
/*
run:
bool flag = true; // bool type
*/