source code
wtforms.TextField("Confirm deleting by typing 'yes'",...
...
wtforms.TextField("Confirm deleting by typing 'yes'", validators= [wtf orms.validators.Required(), wtforms.validators.Regexp(r"^yes$", messag e= "Type 'yes' - without the quotes, lowercase.")])