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.
Usage
-
Select the desired test type from the pick list.
-
Enter a regular expression into the first field.
-
Enter a test string into the second field.
-
If the chosen test is "Substitute" or "SubstituteAll", enter a replace
string into the third field.
-
Select the "Test" button.
A message on the status line will show the results of the test.
The following types of tests are supported:
-
isMatch: successful if the regular expression matches the input
text in its entirety
-
getMatch: displays the input text with the first match highlighted
-
getAllMatches: displays the input text with all matches highlighted
-
substitute: displays the input text substituting the first match
with the replace string
-
substituteAll: displays the input text substituting all matches
with the replace string
-
getMatchEnumeration: same results as for getAllMatches
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 gnu.regexp "Syntax
and Usage Notes". When resizing the window vertically, only the help window
will expand or contract.
Contact
Send comments or questions to Steve Jakob at
Steve.Jakob@lrcc.on.ca