Has anyone got ever regexp in shortanswer in Lesson to work?
Struggling with it and can't find he right solution! Even the most trivial examples break.....
Thanks in advance
Mart,
I use the same Moodle as you, Moodle 2.3.1 (Build: 20120706), and regexp in the short answer question page works just fine. If you go to Joseph Rézeau's page at http://joseph.rezeau.pagesperso-orange.fr//eao/developpement/expandRegexpToString.htm# he has it set up so that you can tryout his examples and tryout your own attempts at making regexp that work.
I was really struggling to understand it myself until I visited his page.
HTH,
AL
Hi Al,
Thanks for your reply. This means I'm doing something wrong. It is not so much the structure of the regexp I'm concerned about, I can't even get the examples from the documentation to work....
Could there be something in the settings of the Lesson?
Could you post an example of yours that is working?
Thanks in advance,
MvdN
Hi mart,
Could you please provide one or more examples of regexp questions that do NOT work for you?
Joseph
Hi Joseph,
Please find attached a sample.
(any chance of seeing your regexp plugin on 2.3.1 ???)
Thanks again!
Short answer - Use regular expressions | |
Answer 1: | de zes beheersaspecten |
Response 1 |
Juist. Zolang het project ten opzichte van de zes beheersaspecten niet meer afwijkt dan is afgesproken, hoeft er niet ingegrepen te worden. |
Score | 0 |
Jump | Next page |
Answer 2: | --.*(zes|6).*/i |
Response 2 | ten opzichte van hoeveel aspecten? |
Score | 0 |
Jump | This page |
Answer 3: | --.*beheersaspect.*/i |
Response 3 | Afwijkingen ten opzichte van wat? |
Score | 0 |
Jump | This page |
Hi mart, thanks for your example, which works as expected for me in moodle 2.3.1.