I am using the following code and the regex match is failing
std::regex reg("^Program Files");
if(std::regex_match("Program Files (x86)",reg)
{
return true;
}
I tried this regex here and it seems to work. Any suggestions why my if condition is not returning true ?