thread output should be a regex