mardi 2 février 2016

How can I require all fields matching a regular expression with laravel?

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]/



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire