That's my string:
myclass.test() and(myclass.mytest() and myclass.test("argument")) or (myclass.mytests(1))
I am trying to capture only the openings of parentheses "(" that is not part of a function,
So I tried to start capturing the functions (and then deny this rule):
\w*\.\w[^(]*\(
Perfect, i catch only the functions, when I tried to use the following expression I did not succeed (why?)
(?<=(\w*\.\w[^(]*\())\(
Notes: - myclass. never changes - don't forget the "and(" - (?<=t)( < works fine.
Thanks :)
Temporary Solution
I will continue studying and trying to apply the "lookbehind" for this case, it seems an interesting approach, but our friend @hwnd suggested a different approach that applies in my case:
\((?=myclass)
Thank u guys.