gnu.regexp.util
public class RETest extends java.lang.Object
java gnu.regexp.util.RETest [regExp] [inputString]
The test function will report the package version number, whether the expression matches the input string, what the match it found was, and the contents of any subexpressions, if applicable.
You may optionally add a third integer argument which is the number of times to repeat the test. When this option is used, RETest will report average compile and match times.
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] argv)
Invokes the test function with the command line arguments specified.
|
public static void main(java.lang.String[] argv) throws REException
argv
- The command line arguments.REException
- There was an error compiling or executing the regular expression.