MFC / C ++中的正则表达式 [英] Regular Expressions in MFC / C++
本文介绍了MFC / C ++中的正则表达式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在mfc中使用正则表达式(regex)在CStringList中查找重复字符串
How to find duplicate strings in a CStringList using regular expressions (regex) in mfc vc++
推荐答案
为什么要使用正则表达式,只需使用==
运算符?
为了找到列表中的所有重复项,您只需编写两个嵌套循环。
Why do you want to use regular expressions where you could simply use the==
operator?
In order to find all the duplicates in the list, you just have to write two nested loops.
这篇关于MFC / C ++中的正则表达式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文