add regular expression pattern matching for ktest

* Add a "regex" flag to programs that specifies that the expected output file will contain one regex per line.
* Added functionality to check regex files by asserting that all the regexes can be found in the output string.
* Demo this functionality by using it for search results in imp++ and logik