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.
Latest release:
140 sites
10 fans
Current versions available: 5

This question type complements the existing Pattern match question type. Learning to make pattern match questions is hard. In this question type, the teacher provides a set of sentances that should, or should not, be match, and the student has to construct a pmatch expression that does that. It is hoped that this question type will provide a useful tool for teaching pmatch syntax.


Screenshot #0
Screenshot #1


Tim at Lone Pine Koala Sanctuary
Tim Hunt (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Wed, Jul 17, 2013, 9:49 AM
    A teacher was trying to restore a course that he developed in Moodle 2.2.1 and got the following error:

    Restore method process_pmatchreverse is missing. It must be defined by a

    I tried to copy the restore and backup scripts provided by the plugin into the /moodle/backup/moodle2 directory, and the same error.

    Our moodle site is version 2.5.1+(20130712) and these versions of pmatchreverse -(2013041300) and pmatch-(2013070100)
    If you could help us with that it would be greatly appreciated.
    Thank you
  • Tim at Lone Pine Koala Sanctuary
    Wed, Jul 17, 2013, 3:56 PM
    This is a known bug, fixed in the lastest version from github, which you can download from

    I guess I should upload the latest version here.
  • Wed, Jan 1, 2014, 6:48 AM
    Just a note of 12/31/13: The buggy module is still the "official" one on the download site, and the github version has to be munged (wrong directory name) before it can be loaded. Also, both modules have the identical version number, so you can't tell from looking whether you have the buggy or the fixed version installed.
  • Tim at Lone Pine Koala Sanctuary
    Wed, Jan 8, 2014, 10:16 PM
    I have now updated the version here.
  • Tim at Lone Pine Koala Sanctuary
    Thu, Jun 11, 2020, 4:10 AM
    This works with Moodle 3.9.
Please login to post comments