:tocdepth: 3 :py:mod:`gws.plugin.model_validator.regex` ========================================== .. py:module:: gws.plugin.model_validator.regex .. autoapi-nested-parse:: 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:** :source:`gws.plugin.model_validator.regex` Package Contents ---------------- .. py:class:: Config Bases: :py:obj:`gws.base.model.validator.Config` Regular expression validator. (added in 8.1) .. py:attribute:: regex :type: gws.Regex Regular expression to match against the field value. .. py:class:: Object Bases: :py:obj:`gws.base.model.validator.Object` .. py:attribute:: regex :type: str .. py:method:: configure() .. py:method:: validate(field, feature, mc)