Regexp verification of short answer question

Regexp verification of short answer question

by Robert Grzesiak -
Number of replies: 0

Moodle 3.6.2+

Hi, I'm preparing IT quiz in moodle and I have encountered a problem. I have tested existing moodle extension for regex in short answers (https://moodle.org/plugins/qtype_regexp), but it generates available answers set and verifies against it. It doesn't really meets criteria I want to achieve. 

For example:

correct answers: "list.add(123);", " list . add  ( 123   ) ;" and so on (multiple white characters that don't really make answer invalid)

but to handle such behavior I'd need to verify against regexp not against some answer set (infinite possibilities)

Is there any extension/way to solve this?

Average of ratings: -