OpenQuizz
Une application de gestion des contenus pédagogiques
|
Public Member Functions | |
def | __init__ (self, pattern) |
def | __call__ (self, value) |
def | __deepcopy__ (self, memo) |
def | __schema__ (self) |
Data Fields | |
pattern | |
re | |
Validate a string based on a regular expression. Example:: parser = reqparse.RequestParser() parser.add_argument('example', type=inputs.regex('^[0-9]+$')) Input to the ``example`` argument will be rejected if it contains anything but numbers. :param str pattern: The regular expression the input must match
def __init__ | ( | self, | |
pattern | |||
) |
def __call__ | ( | self, | |
value | |||
) |
def __deepcopy__ | ( | self, | |
memo | |||
) |
def __schema__ | ( | self | ) |
pattern |
re |