#include <iostream>
#include <string>
#include <regex>
std::string test1 = "Fan 1a";
std::string test2 = "Fan 0b";
std::regex re{ "Fan [0-9]b" };
auto it =std::regex_match(test2, re);
std::cout << "Hello World!\n";
正则表达式
最新推荐文章于 2023-01-02 21:33:35 发布