More regexp filtering for commands