'Validates that the input matches the regular expression.'

def __call__(self, value):

    if (not self.regex.search(smart_unicode(value))):
        raise ValidationError(self.message, code=self.code)
