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?