Returns the character at the given offset past the current cursor
position in the input.
Returns the character at the given offset past the current cursor
position in the input.
Returns the character at the given offset past the current cursor
position in the input.
Returns the character at the given offset past the current cursor
position in the input.
Returns the character at the given offset past the current cursor
position in the input.
Defines the interface used internally so that different types of source
text can be accessed in the same way.
Clears the current match and moves the offset to the new index.
Clear a given bit in this syntax.
Check if a given bit is set in this syntax.
Returns an array of all matches found in the input.
Returns an array of all matches found in the input,
beginning at the specified index position.
Returns an array of all matches found in the input string,
beginning at the specified index position and using the specified
execution flags.
Returns the index within the input string where the match in
its entirety ends.
Returns the index within the input string used to generate this match
where subexpression number sub ends, or -1
if
the subexpression does not exist.
Returns the currently active line separator string.
Returns the first match found in the input.
Returns the first match found in the input, beginning
the search at the specified index.
Returns the first match found in the input, beginning
the search at the specified index, and using the specified
execution flags.
Returns the first match found in the input, beginning the search
at the specified index, and using the specified execution flags.
Returns an REMatchEnumeration that can be used to iterate over the
matches found in the input text.
Returns an REMatchEnumeration that can be used to iterate over the
matches found in the input text.
Returns an REMatchEnumeration that can be used to iterate over the
matches found in the input text.
Reports the descriptive message associated with this exception
as well as its index position in the string or character array
being compiled.
Returns the minimum number of characters that could possibly
constitute a match of this regular expression.
The minimum length of a repeated token is the minimum length
of the token multiplied by the minimum number of times it must
match.
Returns the maximum number of subexpressions in this regular expression.
Returns the position, relative to the string or character array being
compiled, where the error occurred.
Returns the index within the input text where the match in its entirety
began.
Returns the index within the input string used to generate this match
where subexpression number sub begins, or -1
if
the subexpression does not exist.
Returns the index within the input string used to generate this match
where subexpression number sub ends, or -1
if
the subexpression does not exist.
Returns the index within the input string used to generate this match
where subexpression number sub begins, or -1
if
the subexpression does not exist.
Returns the type of the exception, one of the constants listed above.
Grep is a pure-Java clone of the GNU grep utility.
Runs Grep with the specified arguments.
Initializes the applet and constructs GUI elements.
Checks if the regular expression matches the input in its entirety.
Checks if the input string, starting from index, is an exact match of
this regular expression.
Checks if the input, starting from index and using the specified
execution flags, is an exact match of this regular expression.
Queries if this token has minimal matching enabled.
Returns true if the most recent move() operation placed the cursor
position at a valid position in the input.
Returns true if the most recent move() operation placed the cursor
position at a valid position in the input.
Returns true if the most recent move() operation placed the cursor
position at a valid position in the input.
Returns true if the most recent move() operation placed the cursor
position at a valid position in the input.
Returns true if the most recent move() operation placed the cursor
position at a valid position in the input.
Invokes the test function with the command line arguments specified.
Invokes Grep.grep() using the RE_SYNTAX_EGREP syntax and the
command line arguments specified.
Invokes the grep() function below with the command line arguments
and using the RESyntax.RE_SYNTAX_GREP syntax, which attempts to
emulate the traditional UNIX grep syntax.
Called internally when constructing predefined syntaxes
so their interpretation cannot vary.
Sets the minimal matching mode to true.
Returns true if the match succeeded, false if it failed.
Returns true if the match succeeded, false if it failed.
Returns true if the match succeeded, false if it failed.
Shifts the input buffer by a given number of positions.
Shifts the input buffer by a given number of positions.
Shifts the input buffer by a given number of positions.
Shifts the input buffer by a given number of positions.
Shifts the input buffer by a given number of positions.
RE provides the user interface for compiling and matching regular
expressions.
RE() - constructor for class gnu.regexp.
RE Constructs a regular expression pattern buffer without any compilation
flags set, and using the default syntax (RESyntax.RE_SYNTAX_PERL5).
Constructs a regular expression pattern buffer using the specified
compilation flags and the default syntax (RESyntax.RE_SYNTAX_PERL5).
Constructs a regular expression pattern buffer using the specified
compilation flags and regular expression syntax.
Reads the next byte from the stream per the general contract of
InputStream.read().
Reads the next character from the stream per the general contract of
Reader.read().
Reads from the stream into the provided array.
Reads from the stream into the provided array.
Reads from the stream into the provided array.
Reads from the stream into the provided array.
This is a simple applet to demonstrate the capabilities of gnu.regexp.
This is the regular expression exception class.
Replaces instances of a given RE found within an InputStream
with replacement text.
Creates an REFilterInputStream.
Replaces instances of a given RE with replacement text.
Creates an REFilterReader.
An instance of this class represents a match
completed by a gnu.regexp matching function.
An REMatchEnumeration enumerates regular expression matches over a
given input text.
An RESyntax specifies the way a regular expression will be compiled.
Construct a new syntax object with all bits turned off.
Construct a new syntax object with all bits set the same
as the other syntax.
RETest provides a simple way to test regular expressions.
Represents a combination lookahead/lookbehind for POSIX [:alnum:].
Set a given bit in this syntax.
Changes the line separator string for regular expressions
created using this RESyntax.
Substitutes the replacement text for the first match found in the input.
Substitutes the replacement text for the first match found in the input
beginning at the specified index position.
Substitutes the replacement text for the first match found in the input
string, beginning at the specified index position and using the
specified execution flags.
Substitutes the replacement text for each non-overlapping match found
in the input text.
Substitutes the replacement text for each non-overlapping match found
in the input text, starting at the specified index.
Substitutes the replacement text for each non-overlapping match found
in the input text, starting at the specified index and using the
specified execution flags.
Substitute the results of this match to create a new string.