I have a form. One of the questions is what is your favourite animal. I want any derivation of "dog" to be accepted:
CORRECT:
dog
doggie
hounddog
hounddoggie
bigdoggie
My class code currently looks like this:
dog_check = StringField('Favourite animal:', validators=[validators.required(), validators.regexp(regex='dog')])
How do I insert a wildcard? I tried adding | and * like |dog|
and *dog*
but that didn't seem to work. Any idea on how to do this?