Uses regexes to test output