我想使用通配符比较 4 个字符串。
例如:
std::string wildcards[]=
{"H? ", "RH? ", "H[0-5] "};
/*in the last one I need to check if string is "H0 ",..., and "H5 " */
是否可以只用STL来实现?
谢谢, 阿曼.
编辑:
我们可以在没有 boost.regex 的情况下做到这一点吗?
或者我应该向我的项目添加另一个库依赖项吗?:)
最佳答案
关于C++/STL 字符串 : How to mimic regex like function with wildcards?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2471651/