Dela via


Matcher.Matches Method

Definition

Attempts to match the entire region against the pattern.

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

Returns

true if, and only if, the entire region sequence matches this matcher's pattern

Attributes

Remarks

Attempts to match the entire region against the pattern.

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

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

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