I want something similar to this, but within the scope of a method.
Given a project, I want to find all the files with a method which return an specific Object and use another specific method.
Currently I only have this: MyObject(.)*\((.)*\)[\w\W]*?return
which selects the method with the return I expect, but how can I specify a behaviour inside of it?
Feel free to use another simpler pattern, I don't know if the one I've created is good enough.
And please, explain the Regex as I am not an expert of it, and for future purposes also.