Share via


Matcher.Region(Int32, Int32) Method

Definition

Sets the limits of this matcher's region.

[Android.Runtime.Register("region", "(II)Ljava/util/regex/Matcher;", "")]
public Java.Util.Regex.Matcher Region (int start, int end);
[<Android.Runtime.Register("region", "(II)Ljava/util/regex/Matcher;", "")>]
member this.Region : int * int -> Java.Util.Regex.Matcher

Parameters

start
Int32

The index to start searching at (inclusive)

end
Int32

The index to end searching at (exclusive)

Returns

this matcher

Attributes

Remarks

Sets the limits of this matcher's region. The region is the part of the input sequence that will be searched to find a match. Invoking this method resets the matcher, and then sets the region to start at the index specified by the start parameter and end at the index specified by the end parameter.

Depending on the transparency and anchoring being used (see #useTransparentBounds(boolean) useTransparentBounds and #useAnchoringBounds(boolean) useAnchoringBounds), certain constructs such as anchors may behave differently at or around the boundaries of the region.

Added in 1.5.

Java documentation for java.util.regex.Matcher.region(int, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to