std::string pattern = "[disk0-9]";
std::regex regex(pattern, std::regex::ECMAScript);
std::string subject = "Disk1";
bool result = std::regex_match(subject, regex, std::regex_constants::match_any);
std::cout << result << std::endl;
なぜregex_match
falseを返すのですか?