Hello,
I'm using the gap fill question type (fill in the blanc) to have students give the Spanish translation for some words.
I want to use regular expressions to check 2 things:
a. the article (el / la) is optional, but when entered it must be correct.
b. student can type the word with or without accents.
The first question works okay: the horse --> el cabello ==> (el )?caballo
I can type the answer with or without the article, and using "la" marks the answer as wrong.
The next question doesn't work okay: the bird --> el pájaro ==> (el )?p[á|a]jaro
The answers "pajaro" and "pájaro" are marked correct. That is okay.
Also "el pajaro" and "el pájaro" are marked correct. That is okay too.
But repacing "el" with ANY other wordt marks to answer as correct too. That is not okay.
So I assume the problem is in using both ()? and [|] expression in one question.
How can I fix this?
Thank you in advance.
Best regards,
Jeroen