Currently I have a problem with boost :: regex, I need to find the appropriate word և replace. with the corresponding word. My code now looks like this.
std::string name = ptap;
std::string name_regex = "\\b" + name + "\\b";
boost::regex reg(name_regex);
checks_str = boost::regex_replace( checks_str, reg, alias_name );
There are words in the file that look like "ptap.power" because regex reads the dot as any character. The initial part of this word (ptap) changes, which I do not need. How to fix this?
ptap,nameandalias_namehere?