def __init__(self, key, expected, **kwargs):
        # Pre-compile the 'expected' value - the regex.
        expected = re.compile(expected)
        super(MatchesRegexCondition, self).__init__(key, expected, **kwargs)