string str;
if (str = 1.\t) || (str = 2.\t) || ........ || (str = n.\t) {
// some code
基本上我必须检查 int 后跟“.\t”
最佳答案
你想要的正则表达式是 [0-9]+\.\t
如果您需要正则表达式引擎,请使用 Boost.Regex。
关于c++ - *.\t 如何使用正则表达式进行比较?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7202630/