As part of my master of science I am working on a question type plugin, that allows to grade answers based on regular expressions. One goal was the ability to match shell-code. That is why the plugin provides additional options to make matching shell-code easier. Some basic options, for example an option to ignore case, do also exist. The plugin can generally be used for any kind of regular expression.
The plugin code is open source and available on github: github.com/lni-dev/moodle-qtype_regexmatch
I am now looking for a maintainer to take over the project for future moodle versions.