I want to use the Eclipse search to find all method calls for a method which takes a variable argument count, like this: public void myMethod(String s, Object o, String... categories)
and get all which have specific counts of the optional parameter at the end.
So for example i would like to find all occurrences of myMethod("test", niceObject)
when i want those without any optional parameters. I know atleast this part can be done via regex, but this will stop working as soon as someone has split it up into multiple lines (or my regex-fu isn't strong enough :) ).
Any suggestions appreciated, be it using the eclipse built-in search functionality or a good regex which can deal with multiline method calls-