PatternMatcher.Match(String) Method

Definition

Tests whether the supplied string matches this pattern.

[Android.Runtime.Register("match", "(Ljava/lang/String;)Z", "GetMatch_Ljava_lang_String_Handler")]
public virtual bool Match(string? str);
[<Android.Runtime.Register("match", "(Ljava/lang/String;)Z", "GetMatch_Ljava_lang_String_Handler")>]
abstract member Match : string -> bool
override this.Match : string -> bool

Parameters

str
String

The string to test.

Returns

true if str matches this pattern; otherwise, false.

Attributes

Remarks

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.

Java documentation for android.os.PatternMatcher.match(java.lang.String).

Applies to