I have a simple problem. I have a PHP file which contains a lot of function-calls like this one:
return self::_Call('client_changePassword',Array(
$token,
$password,
$user_token
));
The name and the number of parameters can vary but the call itself always have this structure, including spaces and linebreaks.
What I need is a regular expression that will grab all these calls from the PHP file and split them into the function name (client_changePassword) and a group of parameters. Since the file has several hundreds of different calls, it needs to be reasonably fast, too.
The regular expression would be used within C# as part of a console application that will generate a simple code analysis. Basically, I need a list of methods plus parameters that PHP calls in the source and compare it with a list of definitions that is stored in a different project. This would help our code reviews a lot.
No, this is not PHP-related even though I'm trying to parse PHP code. My system can't run any PHP code and I don't even want to run PHP code.
