def METHOD_NAME(self, value):
    if self.regex and value and not re.search(self.regex, value):
        return _("'{value}' is not a valid match for {label}").format(
            value=value, label=self.label)