Select Moodle version:

Blocks: Regex constructor block

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

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. 

Screenshots

screenshot
screenshot
screenshot
screenshot

Contributors

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, Nov 27, 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, Dec 3, 2013, 10:38 AM
    yep (been concentrating on our new theme) i recall that discussion, moving onward.
Please login to post comments