Regular expression short answer

Question types ::: 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.
Latest release:
1283 sites
265 downloads
47 fans
Current versions available: 3

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.

Screenshots

Screenshot #0
Screenshot #1

Contributors

Joseph Rézeau (Lead maintainer): Original author
CSE Université de Lausanne: Supporting institution
Please login to view contributors details and/or to contact them

Comments RSS

顯示評論
  • Yulia Ponomarenko
    2019年07月4日(週四) 01:52
    Thank you for the plugin! I want to ask, why are meta characters allowed in incorrect, but not in accepted answers? Why aren't they allowed in the first answer? Is there some technical reason for that?
  • Joseph Rézeau
    2019年09月7日(週六) 23:14
    @Yulia,
    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.
  • bala chandra
    2019年10月15日(週二) 14:50
    Hello, I am trying to have atto editor for the regular expression.. for answers especially, I have changed the $answeroptions[] = $mform->createElement('text', to $answeroptions[] = $mform->createElement('editor'
    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.
  • mario gharib
    2020年06月5日(週五) 19:59
    Dear @Joseph Rézeau

    Is this a free plugin ?

    Thanks
  • Joseph Rézeau
    2020年07月5日(週日) 05:41
    @Mario,
    Yes, it's free, of course!
  • Jeffrey Bannister
    2020年08月10日(週一) 12:59
    Dear Community,
    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.
  • Joseph Rézeau
    2020年08月18日(週二) 00:56
    Just sent private e-mail to Jeffrey
  • Nicolas Dunand
    2020年11月25日(週三) 21:16
    @Joseph I was just contacted with a similar issue, that will hopefully be posted here too. How was this catchable error issue fixed ?
  • Nicolas Dunand
    2020年11月27日(週五) 03:27
    Merci Joseph, will do!
  • Andrew Lian
    2022年05月14日(週六) 00:00
    Bonjour Joseph,
    I have just discovered this plugin and I am very interested in it. I am particularly interested in the automatic feedback provided by the system as in your screenshot #1. I have experimented with your examples in the documentation pages and everything works except for the automatic feedback and colour coding. Do you have any useful hints for this issue? I am using moodle 4.0 and the Tréma theme. I have also tested with the Adaptable theme just in case the problem was theme related.
    Merci de votre assistance.
    PS I hope this reaches you.
  • Ludger R
    2022年08月18日(週四) 01:33
    Hi, this seems to be my best try to get short answer fields with multiple answers where the order doesn't matter.
    But does it work with cloze in version 4.0 as well? In the documentation you're only talking about older versions.

    Thanks!
  • Joseph Rézeau
    2022年08月19日(週五) 01:10
    @Ludger
    Unfortunately there have been many changes to the EMBEDDED ANSWERS / CLOZE question type in Moodle 4. I'm afraid my little hack will no longer work. I spent all afternoon to try to adapt it but to no avail. Sorry!
  • Gergely Rakoczi
    2024年06月17日(週一) 22:09
    Hi Joseph,
    great plugin, we are using it for years now. I have a question. According to the Moodle documentation, the combination of Regex and the question type "Cloze" should work, however we do not get it running. https://docs.moodle.org/404/en/Embedded_Answers_(Cloze)_question_type
    Have you some working examples here? Are there issues or bugs known? I welcome any information on this topic.
    Thank you and best regards from TU Wien!
    Gergely
  • Joseph Rézeau
    2024年06月18日(週二) 00:12
    Hi Gergely,
    Thanks for your interest in my little REGEXP question plugin. For further discussion please e-mail me directly. My email is in my Moodle profile here: https://moodle.org/user/profile.php?id=20216. I will re-write the documentation on how to use REGEXP in the Cloze/Multianswer question type.
1 2 3
Please login to post comments