core.validators.RegexValidator.regex

regex

The regular expression pattern to search for the provided value, or a pre-compiled regular expression. By default, raises a ValidationError with message and code if a match is not found. That standard behavior can be reversed by setting inverse_match to True, in which case the ValidationError is raised when a match is found. By default, matches any string (including an empty string).

doc_Django
2016-10-09 18:35:03
Comments
Leave a Comment

Please login to continue.