Closed (fixed)
Project:
Quiz
Version:
6.x-4.0-rc10
Component:
Code - Quiz module
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
6 Jan 2011 at 01:11 UTC
Updated:
11 Jan 2011 at 20:31 UTC
I'm really happy that I can use regular expressions to evaluate questions. This is crucial for me (testing language translation). But I'm finding that a lot of standard regex syntax causes errors when I try to answer the question. So I have two questions:
(a) is there a list of accepted regex syntax for the module? This may be on the documentation page, but I'm getting a server error when I visit that page.
(b) Can you implement better regex support? I get an error when I use any parentheses or a lookahead expression.
Comments
Comment #1
scottiw2000 commentedI've since figured this out. Everything seems to work fine if I use perl regex syntax. The key for me was realizing that the regular expression needed to be set between forward slashes (e.g., /xxx/ ). This was foreign to me, coming from javascript and html. If anyone else runs into the same problems, you can google the php function preg_match(), which is the function used in this module to evaluate the regular expressions.