我有此代码:
try
{
std::string input = "00179d006d000174";
std::regex pattern("[[:xdigit:]]{16}");
if(std::regex_match(input, pattern))
std::cout << "Full match" << std::endl;
}
catch(const std::exception& e)
{
std::cerr << e.what() << std::endl;
}
但不能理解两件事: