Use Regex in output test