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.3.1+

Moodle 2.3, 2.4
Released: Tuesday, January 29, 2013, 8:14 PM
Small buggix to Preg 2.3.1

Version information

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

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