Note: You are currently viewing documentation for Moodle 2.0. Up-to-date documentation for the latest stable version is available here: Regular Expression Short-Answer question type.

Talk:Regular Expression Short-Answer question type: Difference between revisions

From MoodleDocs
(Created page with "The example about the French flag always expects students to say the answer Blue, White and Red. What happens if a students answers Red, white and blue? Can regular expressions...")
 
No edit summary
Line 1: Line 1:
The example about the French flag always expects students to say the answer Blue, White and Red.  What happens if a students answers Red, white and blue?  Can regular expressions deal with any combination of answers?
The example about the French flag always expects students to say the answer Blue, White and Red.  What happens if a students answers Red, white and blue?  Can regular expressions deal with any combination of answers?
Peter_Nickson
@Peter:
The only way to match words in any order is to actually write all the possible different combinations, e.g.
(blue white red|blue red white|white blue red|white red blue|red white blue|red blue white)--[[User:Joseph Rézeau|Joseph Rézeau]] 06:48, 17 February 2012 (WST)

Revision as of 22:48, 16 February 2012

The example about the French flag always expects students to say the answer Blue, White and Red. What happens if a students answers Red, white and blue? Can regular expressions deal with any combination of answers?

Peter_Nickson

@Peter:

The only way to match words in any order is to actually write all the possible different combinations, e.g. (blue white red|blue red white|white blue red|white red blue|red white blue|red blue white)--Joseph Rézeau 06:48, 17 February 2012 (WST)