Lets say i have function that takes string so in code it is called like:
myObject.AddMyString("Something")
I want to search whole solution and find all invokes of .AddMyString()
function but i don't want to see it with the same string as parameter more than once.
If i search for: .AddMyString\(".*"\)
and there are many places when i pass exact string "Something" then when pressing find next it will show many of similar ones. I just want to see all unique strings that are passed to this function in code.
@Edit: I thought i stated my problem clear enough.
Lets say i have code like that:
var myObject = new MyClass();
myObject.AddMyString("Test");
myObject.AddMyString("Computer");
myObject.AddMyString("Printer");
[...]
myObject.AddMyString("Scanner");
myObject.AddMyString("Test");
[...]
myObject.AddMyString("Computer");
myObject.AddMyString("Speakers");
I want to use regex so that i will have only 5 matches. It will match only first occurence with "Test" or "Computer" strings.
When i use regex .AddMyString\(".*"\)
it finds 7 matches instead of 5.