Perl-Compatible Regular Expression

Question types ::: qtype_preg
Maintained by Oleg Sychev
A question that could check student's response against several regular expressions and could give next character and next word hints. If you do not know what regular expression is, it could also work like Moodle Shortanswer question with hints, just choose "Moodle shortanswer" as notation and you could enter answers just like in shortanswer question type.

Perl-Compatible Regular Expression Preg 2.7 Release

Moodle 2.7
Released: Wednesday, October 1, 2014, 8:52 AM
This is a technical release to adopt question for Moodle 2.7

Version information

Version build number
Version release name
Preg 2.7 Release
Can be updated from
Preg 2.5 (2013071400), Preg 2.5 Release candidate (2013100500), Preg 2.5 Release candidate (2013100500), Preg 2.5 Release (2013102900), Preg 2.6 Release (2014071000)
Can be updated to
Preg 2.8 (2015070200), Preg 3.0 (2016120500)
Stable version
MD5 Sum
Supported software
Moodle 2.7
  • Latest release for Moodle 2.7

Version control information

Version control system (VCS)
VCS repository URL

Default installation instructions for plugins of the type Question types

  1. Make sure you have all the required versions.
  2. Download and unpack the module.
  3. Place the folder (eg "myquestiontype") in the "question/type" subdirectory.
  4. Visit to finish the installation