I want to find similar strings in an array/dictionary and rename them by adding a postfix to the string. For example suppose my array/dictionary contains strings like this:
1.Work
2.Work
3.Work
4.Home
5.Home
6.Mobile
7.Mobile
etc. there could be any similar strings. Now I want to rename them like this:
1.Work(1)
2.Work(2)
3.Work(3)
4.Home(1)
5.Home(2)
6.Mobile(1)
7.Mobile(2)
Well, i don’t know about a dictionary, but for an array you could do something like this.
Best of luck