Pattern.Matches Method

Definition

Overloads

Matches(String, ICharSequence)

Tests whether the given regularExpression matches the given input.

Matches(String, String)

Matches(String, ICharSequence)

Tests whether the given regularExpression matches the given input.

[Android.Runtime.Register("matches", "(Ljava/lang/String;Ljava/lang/CharSequence;)Z", "")]
public static bool Matches (string regex, Java.Lang.ICharSequence input);
static member Matches : string * Java.Lang.ICharSequence -> bool

Parameters

regex
String

Returns

Boolean
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.

See also

  • <xref:Java.Util.Regex.Pattern.Compile(System.String%2c+Java.Util.Regex.RegexOptions)>
  • Matches()

Applies to

Matches(String, String)

public static bool Matches (string regex, string input);
static member Matches : string * string -> bool

Parameters

regex
String
input
String

Returns

Boolean

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.

Applies to