
Question types: Regular expression short answer
qtype_regexp
Maintained by
Joseph Rézeau,
Nicolas Dunand
This question type (for the Moodle quiz module) aims at a more advanced system of student's response analysis, through the use of regular expresssions. This question type is an extension of the SHORTANSWER type. It can be used on its own and can also be incorporated into the existing Cloze (embedded) question type.
811 sites
310 downloads
32 fans
Current versions available: 4
Like the Short Answer question, the RegExp Short Answer question expects the respondent to answer an "open" question with a word or a short phrase. However, the RegExp system system gives you access to a more powerful system for analyzing the student's answers with the aim of providing more relevant immediate feedback.
Sets
This plugin is part of set Regular expression questions.
Contributors
Joseph Rézeau (Lead maintainer): Original author
Nicolas Dunand
RISET Université de Lausanne: Supporting institution
Please login to view contributors details and/or to contact them
I've been using this plugin for a while now and I'm really grateful to you for creating and maintaining it. It's probably the feature I use most in Moodle.
I'm trying to add regex to cloze type questions but the links to the hacked files are dead - https://docs.moodle.org/24/en/Regular_Expression_Short-Answer_question_type#Inserting_RegExp_sub-questions_in_Cloze_type_questions
Is there anywhere that I can find these files, please? It would be extremely helpful to have this functionality with Cloze. No problem if it's a problem.
Thanks
Alan
I'm merely keeping these plugins originally made by Joseph Rézeau up to date. But the feature you are referring to comes from the Moodle 2.4 (obsolete) documentation of the plugin. If you check the current documentation – by clicking the link at the top of the article you mention – you will see that this feature is no longer mentioned.
Anyways, this is the "issue", one of my teachers added underscores(_) where her answers were supposed to be in the "Short Answer" question, the effect this had, is to place the Text Box in the place where the underscores were typed, this in itself, is an AWESOME feature as it means that you could put the box where you want it in a sentence to fill in a missing word or something like that, and it works GREAT in chrome, if you click on the box, it allows you to enter the word, and when you click on the finish attempt/Next button, it saves your answer, which means that it will allow you to submit the answer, however, when you do the same in the latest Moodle App(3.5.2), whether it is the android, iOS or Desktop, it does not save the answer and therefore does not submit an answer when you submit your quiz, just a side note, this problem does not exist in the Moodle Classic App, as the answer box still appears at the bottom of the question regardless of whether you add the underscores or not, in fact the Moodle Classic App does not even show the underscores at all.
Like I said, this is an awesome feature, whether it was intended or not, and I would really like to see it added into the question type if possible, otherwise, would it be possible to remove the underscore "issue" completely, so that the underscore is visible, instead of the Text Box.
We are currently running Moodle Web v3.5.2 and the same for Moodle Mobile App.
The reason is that introducing meta characters in the correct answers might introduce an infinity of correct formulations. My question type only deals with a finite number of CORRECT answers ... and potentially an infinite number of INCORRECT answers.
But, I am facing some issues when editing the same question again, it returns blank editor. but, when it is text it works properly...
could you please guide.
Is this a free plugin ?
Thanks
Yes, it's free, of course!
Has anyone experienced issues with upgrading to Moodle 3.9 and the plugin?
I am using "RX" type questions in Cloze tests however since upgrading, I have two issues:
1) When creating new questions, it does not detect that there are any embedded questions when using type RX
2) For existing questions, I get the error "Coding error detected, it must be fixed by a programmer: PHP catchable fatal error" when I display the quiz
Thanks for your help.
See https://github.com/rezeau/moodle_multianswer_regexp_compatible/commit/30d2e87a46268ba3add73f4ffd4260e2d84d3161