RETest plugin

About

The RETest plugin can be used to test regular expressions against a given test string. The plugin also supplies integrated HTML help on RE syntax.

NOTE: Prior to version 1.1.0, the RETest plugin used the gnu.regexp package included with jEdit as its regular expression engine. As of version 1.1.0 the plugin was modified to use the java.util.regex package instead. This package was introduced in J2SE 1.4 as part of the core Java toolset.

Usage

  1. Select the desired test type from the pick list.
  2. Enter a regular expression into the first field.
  3. Enter a test string into the second field.
  4. If the chosen test is "replaceFirst" or "replaceAll", enter a replace string into the third field.
  5. Select the "Test" button.
A message on the status line will show the results of the test.

The following types of tests are supported:

Pressing the "Insert" button will insert the text of the regular expression into the current buffer at the current caret position. Backslash (\) characters are automatically converted to a double-backslash (\\) to ensure they work correctly in a Java program.

Dismiss the window by using the "Close" button, or the window closer in the top right corner.

Click on the "Help" button to toggle display of the regular expression syntax notes. When resizing the window vertically, only the help window will expand or contract.

Contact

Send comments or questions to Steve Jakob at
sjakob@users.sourceforge.net
or to the jEdit users mailing list at
jedit-users@lists.sourceforge.net
.