GG_You_can_go_too 

Tim's Space Wiki

Login

RegEx Help

The RegEx processor allows you to test a Python regular expression pattern on a set of test lines.

A user is shown a form with a pattern and test lines. The user can edit the pattern and/or test lines, and press the "Test" button, after which the processor will show a page with results indicating which lines matched the pattern and which did not.

Processor arguments:

  • pattern - the default pattern to test
  • test_lines - a triple-quoted block of lines to test the pattern on
    • these are default lines, that can be replaced by the user in the form on the page.

Example usage:

{{ {#!RegEx
pattern=the.*end
test_lines="""one line
another line
yet another line to test"""
}} }

Back to page: System_Info

TBWiki engine 1.9.3 by Tim Bird