Support matching of executed commands using a Regexp.

Commands can have complex command line options.  Regexp matching allows to test for these.