def validate_regex ( self, object, name, value ):
        try:
            value = strx( value )
            if self.match( value ) is not None:
                return value
        except:
            pass
        self.error( object, name, value )
dataset/ETHPy150Open enthought/traits/traits/trait_handlers.py/TraitString.validate_regex/original