

def validate(self, text):
    ' Validates the given text matches the regular expression.\n\n        Parameters\n        ----------\n        text : unicode\n            The unicode text edited by the client widget.\n\n        Returns\n        -------\n        result : bool\n            True if the text is valid, False otherwise.\n\n        '
    return bool(re.match(self.regex, text))

dataset/ETHPy150Open nucleic/enaml/enaml/validator.py RegexValidator.validate/original