Add in regular expression matching for messages.