gws.plugin.model_validator.regex

Regex validator for strings.

Validates if the string matches regex. Uses re.search, that is, the start anchor must be included if necessary.

Source code: gws.plugin.model_validator.regex

Package Contents

class gws.plugin.model_validator.regex.Config

Bases: gws.base.model.validator.Config

Regular expression validator. (added in 8.1)

regex: gws.Regex
class gws.plugin.model_validator.regex.Object

Bases: gws.base.model.validator.Object

regex: str
configure()
validate(field, feature, mc)