filter commands via regex on clear