How can I cut a function without a regular expression if I don't know the parameters? As example: my_function(8, 7,"string123",str_to_num("1")); And if I have a function for regular expressions, then I must know what is to cut (thousands of variables and functions).