class RegexValidator(regex=None, message=None, code=None, inverse_match=None, flags=0) [source]
Parameters:
regex – If not None, overrides regex. Can be a regular expression string or a pre-compiled regular expression.
message – If not None, overrides message.
code – If not None, overrides code.
inverse_match – If not None, overrides inverse_match.
flags – If not None, overrides flags. In that case, regex must be a regular expression string, or TypeError is raised.
regex
The regu