Imagine you have code that looks like
console.log(functioncall('Bang goes the' +
' Olufsen (At least I think it does)'));
or
var_dump(functioncall("Please, for me"));
Without having to write a state machine and without running the script, is there a way to get all occurrences of functioncall(everything_up_to_closing_parentheses)
in a script file using PHP?
Possible solutions involve RegExp, but I'm FAR from competent enough to write an expression that covers all possibilities.