Java.Util.Regex.Matcher: Method Members

The methods of Java.Util.Regex.Matcher are listed below. For a list of all members, see the Matcher Members list.

See Also: Inherited members from Java.Lang.Object

Public Methods

AppendReplacement(Java.Lang.StringBuffer, string) : Matcher
Appends a literal part of the input plus a replacement for the current match to a given Java.Lang.StringBuffer.
AppendTail(Java.Lang.StringBuffer) : Java.Lang.StringBuffer
Appends the (unmatched) remainder of the input to the given Java.Lang.StringBuffer.
End() : int
Returns the index of the first character following the text that matched the whole regular expression.
End(int) : int
Returns the index of the first character following the text that matched a given group.
Find() : bool
Moves to the next occurrence of the pattern in the input.
Find(int) : bool
Returns true if there is another match in the input, starting from the given position.
Group() : string
Returns the text that matched the whole regular expression.
Group(int) : string
Returns the text that matched a given group of the regular expression.
Group(string) : string
Documentation for this section has not yet been entered.
GroupCount() : int
Returns the number of groups in the results, which is always equal to the number of groups in the original regular expression.
HitEnd() : bool
Returns true if the most recent matching operation attempted to access additional text beyond the available input, meaning that additional input could change the results of the match.
LookingAt() : bool
Tries to match the Java.Util.Regex.Pattern, starting from the beginning of the region (or the beginning of the input, if no region has been set).
Matches() : bool
Tries to match the Java.Util.Regex.Pattern against the entire region (or the entire input, if no region has been set).
Pattern() : Pattern
Returns the Java.Util.Regex.Pattern instance used inside this matcher.
static
QuoteReplacement(string) : string
Returns a replacement string for the given one that has all backslashes and dollar signs escaped.
Region(int, int) : Matcher
Resets this matcher and sets a region.
RegionEnd() : int
Returns this matcher's region end, that is, the index of the first character that is not considered for a match.
RegionStart() : int
Returns this matcher's region start, that is, the index of the first character that is considered for a match.
ReplaceAll(string) : string
Replaces all occurrences of this matcher's pattern in the input with a given string.
ReplaceFirst(string) : string
Replaces the first occurrence of this matcher's pattern in the input with a given string.
RequireEnd() : bool
Returns true if the most recent match succeeded and additional input could cause it to fail.
Reset() : Matcher
Resets the Matcher.
Reset(Java.Lang.ICharSequence) : Matcher
Provides a new input and resets the Matcher.
Reset(string) : Matcher
Documentation for this section has not yet been entered.
Start() : int
Returns the index of the first character of the text that matched the whole regular expression.
Start(int) : int
Returns the index of the first character of the text that matched a given group.
ToMatchResult() : IMatchResult
Converts the current match into a separate Java.Util.Regex.IMatchResult instance that is independent from this matcher.
UseAnchoringBounds(bool) : Matcher
Determines whether this matcher has anchoring bounds enabled or not.
UsePattern(Pattern) : Matcher
Sets a new pattern for the Matcher.
UseTransparentBounds(bool) : Matcher
Determines whether this matcher has transparent bounds enabled or not.