Pattern-match question type for Moodle