Escape character in regex short answer questions

Escape character in regex short answer questions

by Joerg Huber -
Number of replies: 1

I believe I am using Moodle 1.9. The escape character does not appear to work. Illustration - this is my question and I try to accommodate students who use the comma instead of the decimal point when reporting somethin like a p-value (see also attachment).

Testing parametric assumptions

What is the t value (Please give the number of decimal places provided by SPSS)? Q

Answer 1: "11.919" is the correct and first answer

Answer 2: ".*11/.919.*" tries to accommodate students who put e.g. p= or similar

Answer 2 has the effect on my system that any character can be put between the digits and a correct response is recorded. E.g. 11e919 is graded as correct.  

I hope this makes sense. Can anybody advice? Joerg

Attachment RegEx Question using Escape Character.jpg
Average of ratings: -
In reply to Joerg Huber

Re: Escape character in regex short answer questions

by Joerg Huber -

I believe I resolved the problem which is likely to be due to testing answers without refreshing the screen in between testing of various answers. I could not determine a rule, but the system gets 'confused' after testing a couple of answers.