Blocks: Regex constructor block

Maintained by Picture of Oleg Sychev Oleg Sychev
Block regex constructor allows you to easily construct regular expression using several tools, that visualise expression you wrote, describe and test it.
16 sites

This block allows you to create regular expression using several tools:

  • syntax tree shows you the inner structure of regular expressions;
  • explaining graph shows you how your expression will work in a graphical way;
  • description formulates the meaning of your expression in English;
  • testing tool allows you to enter strings and see how they match your regex.

You can also select a part of you expression and see corresponding parts selected in all tools (testing included!).

This block may be useful if you teachers or students have to write regexes working on the course. 


Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3


Picture of Oleg Sychev
Oleg Sychev (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Oleg Sychev
    Wed, 27 Nov 2013, 4:42 AM
    Well, we ended last session (before crash) on finding that requiring qtype_preg is acceptable. Could we continue onward? There is no much in this block than a small portion of code to run parts of qtype_preg from another place in Moodle interface...
  • MD shot of me from his iphone4
    Tue, 3 Dec 2013, 10:38 AM
    yep (been concentrating on our new theme) i recall that discussion, moving onward.
Please login to post comments