javascript - regex find method calls with specific number of arguments -


I am trying to find all occurencas of some method, but only with specified number arguments (5): < / P>

So we say that I have different methods with the same name and different arguments.

 . Method. TAD, SD, ASD, ADD, ADD, AD).   

I have tried to do something like this: . Open \ ((?:? *? \,) {4} [^,] *? \) But it returns all the methods with 5 more arguments:

 < Code> .method (asd, asd,   

I only need 4 for those people. Thanks in advance!

  for example "open \ s? \ (([^,] *,) {4} [ ^,)] * \) "Methodfile    

Comments