Reverse pattern match

Question types ::: qtype_pmatchreverse
Maintained by Tim at Lone Pine Koala SanctuaryTim Hunt
A question type where the teacher provides some example sentences, and the student has to write a pmatch expression to match those sentences.

Reverse pattern match v1.1 for Moodle 2.5+

Moodle 2.5, 2.6, 2.7
Released: Tuesday, April 29, 2014, 2:48 AM
Reverse pattern match question type

This question type was created by Tim Hunt just for fun.

The pattern match question type allows the teacher to grade sentences entered by
the student using the pattern-match language. This question type does it backwards.
The teacher provides some sentences, and says whether or not they should be matched,
and the student has to come up with a pattern-match expression that does that.
This question type is intended to be used to help people learn pattern-match

The pattern-match language is documented at

This question type is compatible with Moodle 2.4+.

To install the question type using git, type this command in the root of your
Moodle install

git clone git:// question/type/pmatchreverse
echo '/question/type/pmatchreverse' >> .git/info/exclude

Alternatively, download the zip from

unzip it into the question/type folder, and then rename the new folder to pmatchreverse.

Note that you also need the pmatch question type installed:

git clone git:// lib/editor/supsub
echo '/lib/editor/supsub' >> .git/info/exclude
git clone git:// question/type/pmatch
echo '/question/type/pmatch' >> .git/info/exclude


Once the code is in place, remember to visit the Site administration -> Notifications
page to complete the install.

Version information

Version build number
Version release name
v1.1 for Moodle 2.5+
Can be updated from
v0.2 for Moodle 2.4+ (2013041300), v1.0 for Moodle 2.5+ (2014010800)
Can be updated to
v1.2 for Moodle 2.6+ (2014111200)
Stable version
MD5 Sum
Supported software
Moodle 2.5, Moodle 2.6, Moodle 2.7

Version control information

Version control system (VCS)
VCS repository URL
VCS branch
VCS tag

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