次の方法で共有


Matcher.Find Method

Definition

Overloads

Find()

Attempts to find the next subsequence of the input sequence that matches the pattern.

Find(Int32)

Resets this matcher and then attempts to find the next subsequence of the input sequence that matches the pattern, starting at the specified index.

Find()

Attempts to find the next subsequence of the input sequence that matches the pattern.

[Android.Runtime.Register("find", "()Z", "")]
public bool Find ();
[<Android.Runtime.Register("find", "()Z", "")>]
member this.Find : unit -> bool

Returns

true if, and only if, a subsequence of the input sequence matches this matcher's pattern

Attributes

Remarks

Attempts to find the next subsequence of the input sequence that matches the pattern.

This method starts at the beginning of this matcher's region, or, if a previous invocation of the method was successful and the matcher has not since been reset, at the first character not matched by the previous match.

If the match succeeds then more information can be obtained via the start, end, and group methods.

Java documentation for java.util.regex.Matcher.find().

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

Find(Int32)

Resets this matcher and then attempts to find the next subsequence of the input sequence that matches the pattern, starting at the specified index.

[Android.Runtime.Register("find", "(I)Z", "")]
public bool Find (int start);
[<Android.Runtime.Register("find", "(I)Z", "")>]
member this.Find : int -> bool

Parameters

start
Int32

the index to start searching for a match

Returns

true if, and only if, a subsequence of the input sequence starting at the given index matches this matcher's pattern

Attributes

Exceptions

if start input.length()

Remarks

Resets this matcher and then attempts to find the next subsequence of the input sequence that matches the pattern, starting at the specified index.

If the match succeeds then more information can be obtained via the start, end, and group methods, and subsequent invocations of the #find() method will start at the first character not matched by this match.

Java documentation for java.util.regex.Matcher.find(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