Click here to Skip to main content
15,881,172 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to find duplicate strings in a CStringList using regular expressions (regex) in mfc vc++
Posted
Updated 16-Jan-15 1:39am
v2

1 solution

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.
 
Share this answer
 
v2
Comments
Leo Chapiro 16-Jan-15 7:42am    
A good point! +5
CPallini 16-Jan-15 9:11am    
Thank you.
TheRealSteveJudge 16-Jan-15 8:09am    
Sometimes "simple" solutions are working as well! 5*
CPallini 16-Jan-15 9:11am    
Indeed.
Thank you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900