I am making an application where users can upload questions, and questions can have multiple correct answers. The correct answers have names of the form correctAnswer1 correctAnswer2 etc.
I want to know how to require all submitted fields matching this pattern; I was thinking of using something analogous to
/correctAnswer[0-9]/
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1KVk8Zg
via IFTTT
Aucun commentaire:
Enregistrer un commentaire