Updated regexp to support new error format.