def validate(self, text):
        return bool(re.match(self.regex, text))
Validates the given text matches the regular expression.
dataset/ETHPy150Open nucleic/enaml/enaml/validator.py/RegexValidator.validate