共用方式為


Pattern.Matcher Method

Definition

Overloads

Matcher(String)

Creates a matcher that will match the given input against this pattern.

Matcher(ICharSequence)

Creates a matcher that will match the given input against this pattern.

Matcher(String)

Creates a matcher that will match the given input against this pattern.

public Java.Util.Regex.Matcher Matcher (string input);
member this.Matcher : string -> Java.Util.Regex.Matcher

Parameters

input
String

The character sequence to be matched

Returns

A new matcher for this pattern

Remarks

Creates a matcher that will match the given input against this pattern.

Java documentation for java.util.regex.Pattern.matcher(java.lang.CharSequence).

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

Matcher(ICharSequence)

Creates a matcher that will match the given input against this pattern.

[Android.Runtime.Register("matcher", "(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;", "")]
public Java.Util.Regex.Matcher Matcher (Java.Lang.ICharSequence input);
[<Android.Runtime.Register("matcher", "(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;", "")>]
member this.Matcher : Java.Lang.ICharSequence -> Java.Util.Regex.Matcher

Parameters

input
ICharSequence

The character sequence to be matched

Returns

A new matcher for this pattern

Attributes

Remarks

Creates a matcher that will match the given input against this pattern.

Java documentation for java.util.regex.Pattern.matcher(java.lang.CharSequence).

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