|
Posted by roman_tryk on 09/07/06 10:16
Hi.
I writing a lot of code that contains calls to my own Debug functions
(like log).
I want to produce a release from my code without this function calls,
so I tried to write a program that reads a source code and removes this
function calls with preg_replace...
And here is a problem. I can't write a proper regexp for this use.
There are some call that contains more that one argument or arguments
are created dynamicaly, like:
log($myVar1, $myVar2. " -> ". $myVar3, "(x:". $x .", y:". $y .")",
$arg1.';('.$arg2.');'.$arg3);
Can anyone help me with it? I'm not good in Regular Expresions so maybe
I can learn something from this group ;)
Navigation:
[Reply to this message]
|