Fixed regex in output matching