I am trying to find abstract all occurrences of a function call in a full project in Webstorm. The issue is that the function call may be broken into multiple lines for readability, hence I am trying to use regex for this.
foobar(a,b
c,d);
foobar(e,f,g,h);
I am trying to use regex foobar[\S\s]*\);? to get both the calls as separate occurrences but I keep getting one match only with the entire text highlighted(greedy result). What am I doing wrong with respect to the non greedy reg ex?