Changed the regex to be more generic. It will exclude or transform everything that isn't `error` or `warning`.