new command with regex