Added support to match exception messages in to.raise_error using regular expressions