minor cmd_regex tweak