- get(int) - Method in class gnu.regexp.RESyntax
-
Check if a given bit is set in this syntax.
- getAllMatches(Object) - Method in class gnu.regexp.RE
-
Returns an array of all matches found in the input.
- getAllMatches(Object, int) - Method in class gnu.regexp.RE
-
Returns an array of all matches found in the input,
beginning at the specified index position.
- getAllMatches(Object, int, int) - Method in class gnu.regexp.RE
-
Returns an array of all matches found in the input string,
beginning at the specified index position and using the specified
execution flags.
- getEndIndex() - Method in class gnu.regexp.REMatch
-
Returns the index within the input string where the match in
its entirety ends.
- getEndIndex(int) - Method in class gnu.regexp.REMatch
-
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.
- getLineSeparator() - Method in class gnu.regexp.RESyntax
-
Returns the currently active line separator string.
- getLocalizedMessage(String) - Static method in class gnu.regexp.RE
-
- getMatch(Object) - Method in class gnu.regexp.RE
-
Returns the first match found in the input.
- getMatch(Object, int) - Method in class gnu.regexp.RE
-
Returns the first match found in the input, beginning
the search at the specified index.
- getMatch(Object, int, int) - Method in class gnu.regexp.RE
-
Returns the first match found in the input, beginning
the search at the specified index, and using the specified
execution flags.
- getMatch(Object, int, int, StringBuffer) - Method in class gnu.regexp.RE
-
Returns the first match found in the input, beginning the search
at the specified index, and using the specified execution flags.
- getMatchEnumeration(Object) - Method in class gnu.regexp.RE
-
Returns an REMatchEnumeration that can be used to iterate over the
matches found in the input text.
- getMatchEnumeration(Object, int) - Method in class gnu.regexp.RE
-
Returns an REMatchEnumeration that can be used to iterate over the
matches found in the input text.
- getMatchEnumeration(Object, int, int) - Method in class gnu.regexp.RE
-
Returns an REMatchEnumeration that can be used to iterate over the
matches found in the input text.
- getMatchImpl(CharIndexed, int, int, StringBuffer) - Method in class gnu.regexp.RE
-
- getMessage() - Method in exception gnu.regexp.REException
-
Reports the descriptive message associated with this exception
as well as its index position in the string or character array
being compiled.
- getMinimumLength() - Method in class gnu.regexp.RE
-
Returns the minimum number of characters that could possibly
constitute a match of this regular expression.
- getMinimumLength() - Method in class gnu.regexp.REToken
-
- getMinimumLength() - Method in class gnu.regexp.RETokenAny
-
- getMinimumLength() - Method in class gnu.regexp.RETokenChar
-
- getMinimumLength() - Method in class gnu.regexp.RETokenOneOf
-
- getMinimumLength() - Method in class gnu.regexp.RETokenPOSIX
-
- getMinimumLength() - Method in class gnu.regexp.RETokenRange
-
- getMinimumLength() - Method in class gnu.regexp.RETokenRepeated
-
The minimum length of a repeated token is the minimum length
of the token multiplied by the minimum number of times it must
match.
- getNumSubs() - Method in class gnu.regexp.RE
-
Returns the maximum number of subexpressions in this regular expression.
- getPosition() - Method in exception gnu.regexp.REException
-
Returns the position, relative to the string or character array being
compiled, where the error occurred.
- getStartIndex() - Method in class gnu.regexp.REMatch
-
Returns the index within the input text where the match in its entirety
began.
- getStartIndex(int) - Method in class gnu.regexp.REMatch
-
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.
- getSubEndIndex(int) - Method in class gnu.regexp.REMatch
-
Deprecated.
Use getEndIndex(int) instead
- getSubStartIndex(int) - Method in class gnu.regexp.REMatch
-
Deprecated.
Use getStartIndex(int) instead.
- getType() - Method in exception gnu.regexp.REException
-
Returns the type of the exception, one of the constants listed above.
- gnu.regexp - package gnu.regexp
-
- gnu.regexp.util - package gnu.regexp.util
-
- GRAPH - Static variable in class gnu.regexp.RETokenPOSIX
-
- Grep - Class in gnu.regexp.util
-
Grep is a pure-Java clone of the GNU grep utility.
- grep(String[], RESyntax, PrintStream) - Static method in class gnu.regexp.util.Grep
-
Runs Grep with the specified arguments.
- RE - Class in gnu.regexp
-
RE provides the user interface for compiling and matching regular
expressions.
- RE(Object) - 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).
- RE(Object, int) - Constructor for class gnu.regexp.RE
-
Constructs a regular expression pattern buffer using the specified
compilation flags and the default syntax (RESyntax.RE_SYNTAX_PERL5).
- RE(Object, int, RESyntax) - Constructor for class gnu.regexp.RE
-
Constructs a regular expression pattern buffer using the specified
compilation flags and regular expression syntax.
- RE() - Constructor for class gnu.regexp.RE
-
- re - Variable in class gnu.regexp.RETokenLookAhead
-
- RE_BACKSLASH_ESCAPE_IN_LISTS - Static variable in class gnu.regexp.RESyntax
-
Syntax bit.
- RE_BK_PLUS_QM - Static variable in class gnu.regexp.RESyntax
-
Syntax bit.
- RE_CHAR_CLASS_ESC_IN_LISTS - Static variable in class gnu.regexp.RESyntax
-
Syntax bit.
- RE_CHAR_CLASS_ESCAPES - Static variable in class gnu.regexp.RESyntax
-
Syntax bit.
- RE_CHAR_CLASSES - Static variable in class gnu.regexp.RESyntax
-
Syntax bit.
- RE_COMMENTS - Static variable in class gnu.regexp.RESyntax
-
Syntax bit.
- RE_CONTEXT_INDEP_ANCHORS - Static variable in class gnu.regexp.RESyntax
-
Syntax bit.
- RE_CONTEXT_INDEP_OPS - Static variable in class gnu.regexp.RESyntax
-
Syntax bit.
- RE_CONTEXT_INVALID_OPS - Static variable in class gnu.regexp.RESyntax
-
Syntax bit.
- RE_DOT_NEWLINE - Static variable in class gnu.regexp.RESyntax
-
Syntax bit.
- RE_DOT_NOT_NULL - Static variable in class gnu.regexp.RESyntax
-
Syntax bit.
- RE_HAT_LISTS_NOT_NEWLINE - Static variable in class gnu.regexp.RESyntax
-
Syntax bit.
- RE_INTERVALS - Static variable in class gnu.regexp.RESyntax
-
Syntax bit.
- RE_LIMITED_OPS - Static variable in class gnu.regexp.RESyntax
-
Syntax bit.
- RE_LOOKAHEAD - Static variable in class gnu.regexp.RESyntax
-
Syntax bit.
- RE_NEWLINE_ALT - Static variable in class gnu.regexp.RESyntax
-
Syntax bit.
- RE_NO_BK_BRACES - Static variable in class gnu.regexp.RESyntax
-
Syntax bit.
- RE_NO_BK_PARENS - Static variable in class gnu.regexp.RESyntax
-
Syntax bit.
- RE_NO_BK_REFS - Static variable in class gnu.regexp.RESyntax
-
Syntax bit.
- RE_NO_BK_VBAR - Static variable in class gnu.regexp.RESyntax
-
Syntax bit.
- RE_NO_EMPTY_RANGES - Static variable in class gnu.regexp.RESyntax
-
Syntax bit.
- RE_PURE_GROUPING - Static variable in class gnu.regexp.RESyntax
-
Syntax bit.
- RE_STINGY_OPS - Static variable in class gnu.regexp.RESyntax
-
Syntax bit.
- RE_STRING_ANCHORS - Static variable in class gnu.regexp.RESyntax
-
Syntax bit.
- RE_SYNTAX_AWK - Static variable in class gnu.regexp.RESyntax
-
Predefined syntax.
- RE_SYNTAX_ED - Static variable in class gnu.regexp.RESyntax
-
Predefined syntax.
- RE_SYNTAX_EGREP - Static variable in class gnu.regexp.RESyntax
-
Predefined syntax.
- RE_SYNTAX_EMACS - Static variable in class gnu.regexp.RESyntax
-
Predefined syntax.
- RE_SYNTAX_GREP - Static variable in class gnu.regexp.RESyntax
-
Predefined syntax.
- RE_SYNTAX_PERL4 - Static variable in class gnu.regexp.RESyntax
-
Predefined syntax.
- RE_SYNTAX_PERL4_S - Static variable in class gnu.regexp.RESyntax
-
Predefined syntax.
- RE_SYNTAX_PERL5 - Static variable in class gnu.regexp.RESyntax
-
Predefined syntax.
- RE_SYNTAX_PERL5_S - Static variable in class gnu.regexp.RESyntax
-
Predefined syntax.
- RE_SYNTAX_POSIX_AWK - Static variable in class gnu.regexp.RESyntax
-
Predefined syntax.
- RE_SYNTAX_POSIX_BASIC - Static variable in class gnu.regexp.RESyntax
-
Predefined syntax.
- RE_SYNTAX_POSIX_EGREP - Static variable in class gnu.regexp.RESyntax
-
Predefined syntax.
- RE_SYNTAX_POSIX_EXTENDED - Static variable in class gnu.regexp.RESyntax
-
Predefined syntax.
- RE_SYNTAX_POSIX_MINIMAL_BASIC - Static variable in class gnu.regexp.RESyntax
-
Predefined syntax.
- RE_SYNTAX_POSIX_MINIMAL_EXTENDED - Static variable in class gnu.regexp.RESyntax
-
Predefined syntax.
- RE_SYNTAX_SED - Static variable in class gnu.regexp.RESyntax
-
Predefined syntax.
- RE_UNMATCHED_RIGHT_PAREN_ORD - Static variable in class gnu.regexp.RESyntax
-
Syntax bit.
- read() - Method in class gnu.regexp.REFilterInputStream
-
Deprecated.
Reads the next byte from the stream per the general contract of
InputStream.read().
- read(byte[], int, int) - Method in class gnu.regexp.REFilterInputStream
-
Deprecated.
Reads from the stream into the provided array.
- read(byte[]) - Method in class gnu.regexp.REFilterInputStream
-
Deprecated.
Reads from the stream into the provided array.
- read() - Method in class gnu.regexp.REFilterReader
-
Reads the next character from the stream per the general contract of
Reader.read().
- read(char[], int, int) - Method in class gnu.regexp.REFilterReader
-
Reads from the stream into the provided array.
- read(char[]) - Method in class gnu.regexp.REFilterReader
-
Reads from the stream into the provided array.
- REApplet - Class in gnu.regexp.util
-
This is a simple applet to demonstrate the capabilities of gnu.regexp.
- REApplet() - Constructor for class gnu.regexp.util.REApplet
-
Creates an REApplet.
- REException - Exception in gnu.regexp
-
This is the regular expression exception class.
- REException(String, int, int) - Constructor for exception gnu.regexp.REException
-
- REFilterInputStream - Class in gnu.regexp
-
Deprecated.
This class cannot properly handle all character
encodings. For proper handling, use the REFilterReader
class instead.
- REFilterInputStream(InputStream, RE, String) - Constructor for class gnu.regexp.REFilterInputStream
-
Deprecated.
Creates an REFilterInputStream.
- REFilterReader - Class in gnu.regexp
-
Replaces instances of a given RE with replacement text.
- REFilterReader(Reader, RE, String) - Constructor for class gnu.regexp.REFilterReader
-
Creates an REFilterReader.
- REG_ANCHORINDEX - Static variable in class gnu.regexp.RE
-
Execution flag.
- REG_BADBR - Static variable in exception gnu.regexp.REException
-
Error flag.
- REG_BADPAT - Static variable in exception gnu.regexp.REException
-
Error flag.
- REG_BADRPT - Static variable in exception gnu.regexp.REException
-
Error flag.
- REG_DOT_NEWLINE - Static variable in class gnu.regexp.RE
-
Compilation flag.
- REG_EBRACE - Static variable in exception gnu.regexp.REException
-
Error flag.
- REG_EBRACK - Static variable in exception gnu.regexp.REException
-
Error flag.
- REG_ECTYPE - Static variable in exception gnu.regexp.REException
-
Error flag.
- REG_EEND - Static variable in exception gnu.regexp.REException
-
Error flag.
- REG_EPAREN - Static variable in exception gnu.regexp.REException
-
Error flag.
- REG_ERANGE - Static variable in exception gnu.regexp.REException
-
Error flag.
- REG_ESCAPE - Static variable in exception gnu.regexp.REException
-
Error flag.
- REG_ESIZE - Static variable in exception gnu.regexp.REException
-
Error flag.
- REG_ESPACE - Static variable in exception gnu.regexp.REException
-
Error flag.
- REG_ESUBREG - Static variable in exception gnu.regexp.REException
-
Error flag.
- REG_ICASE - Static variable in class gnu.regexp.RE
-
Compilation flag.
- REG_MULTILINE - Static variable in class gnu.regexp.RE
-
Compilation flag.
- REG_NO_INTERPOLATE - Static variable in class gnu.regexp.RE
-
Execution flag.
- REG_NOTBOL - Static variable in class gnu.regexp.RE
-
Execution flag.
- REG_NOTEOL - Static variable in class gnu.regexp.RE
-
Execution flag.
- REMatch - Class in gnu.regexp
-
An instance of this class represents a match
completed by a gnu.regexp matching function.
- REMatch(int, int, int) - Constructor for class gnu.regexp.REMatch
-
- REMatchEnumeration - Class in gnu.regexp
-
An REMatchEnumeration enumerates regular expression matches over a
given input text.
- REMatchEnumeration(RE, CharIndexed, int, int) - Constructor for class gnu.regexp.REMatchEnumeration
-
- RESyntax - Class in gnu.regexp
-
An RESyntax specifies the way a regular expression will be compiled.
- RESyntax() - Constructor for class gnu.regexp.RESyntax
-
Construct a new syntax object with all bits turned off.
- RESyntax(RESyntax) - Constructor for class gnu.regexp.RESyntax
-
Construct a new syntax object with all bits set the same
as the other syntax.
- RETest - Class in gnu.regexp.util
-
RETest provides a simple way to test regular expressions.
- REToken - Class in gnu.regexp
-
- REToken(int) - Constructor for class gnu.regexp.REToken
-
- RETokenAny - Class in gnu.regexp
-
- RETokenAny(int, boolean, boolean) - Constructor for class gnu.regexp.RETokenAny
-
- RETokenBackRef - Class in gnu.regexp
-
- RETokenBackRef(int, int, boolean) - Constructor for class gnu.regexp.RETokenBackRef
-
- RETokenChar - Class in gnu.regexp
-
- RETokenChar(int, char, boolean) - Constructor for class gnu.regexp.RETokenChar
-
- RETokenEnd - Class in gnu.regexp
-
- RETokenEnd(int, String) - Constructor for class gnu.regexp.RETokenEnd
-
- RETokenEndSub - Class in gnu.regexp
-
- RETokenEndSub(int) - Constructor for class gnu.regexp.RETokenEndSub
-
- RETokenLookAhead - Class in gnu.regexp
-
- RETokenLookAhead(REToken, boolean) - Constructor for class gnu.regexp.RETokenLookAhead
-
- RETokenOneOf - Class in gnu.regexp
-
- RETokenOneOf(int, String, boolean, boolean) - Constructor for class gnu.regexp.RETokenOneOf
-
- RETokenOneOf(int, Vector, boolean) - Constructor for class gnu.regexp.RETokenOneOf
-
- RETokenPOSIX - Class in gnu.regexp
-
- RETokenPOSIX(int, int, boolean, boolean) - Constructor for class gnu.regexp.RETokenPOSIX
-
- RETokenRange - Class in gnu.regexp
-
- RETokenRange(int, char, char, boolean) - Constructor for class gnu.regexp.RETokenRange
-
- RETokenRepeated - Class in gnu.regexp
-
- RETokenRepeated(int, REToken, int, int) - Constructor for class gnu.regexp.RETokenRepeated
-
- RETokenStart - Class in gnu.regexp
-
- RETokenStart(int, String) - Constructor for class gnu.regexp.RETokenStart
-
- RETokenWordBoundary - Class in gnu.regexp
-
Represents a combination lookahead/lookbehind for POSIX [:alnum:].
- RETokenWordBoundary(int, int, boolean) - Constructor for class gnu.regexp.RETokenWordBoundary
-