A question about removeTasksMatching

Hello! I just registered today and the reason why I registered is because I’m having a trouble with ‘removeTasksMatching’ function.

so I have two tasks which are ‘box_move’, and ‘box_move2’.
And I tried to use a function ‘removeTasksMatching’ but it is not working.

def debugTask(self, task):
    taskMgr.removeTasksMatching('box_move *')
    return task.done

And of course obviously I added debugTask to task.

Sorry guys, I found a solution.

I had to put spaces between box_move and 1

so it should be ‘box_move 1’ not ‘box_move1’