Inherits from
- String: enthought.traits.trait_types.String
Attributes
Inherited from base classes
Method summary
- __init__(self, value = '', regex = '.*', **metadata)
Inherited from base classes
- __getstate__(self)
- __setstate__(self, state)
- arg_error(self, method, arg_num, object, name, value)
- create_editor(self)
- dup_arg_error(self, method, arg_num, object, name)
- error(self, object, name, value)
- full_info(self, object, name, value)
- get_editor(self, trait = None)
- info(self)
- inner_traits(self)
- is_valid(self, object, name, value)
- keyword_error(self, method, object, name, value)
- missing_arg_error(self, method, arg_num, object, name)
- repr(self, value)
- return_error(self, method, object, value)
- validate(self, object, name, value)
- validate_all(self, object, name, value)
- validate_len(self, object, name, value)
- validate_regex(self, object, name, value)
- validate_str(self, object, name, value)
Methods
- __init__(self, value = '', regex = '.*', **metadata)
Creates a Regex trait.
Parameters
- value : string
- The default value of the trait
- regex : string
- The regular expression that the trait value must match.
Default Value
value or ''