Share via


Matcher.ToMatchResult Method

Definition

Returns the match state of this matcher as a MatchResult.

[Android.Runtime.Register("toMatchResult", "()Ljava/util/regex/MatchResult;", "")]
public Java.Util.Regex.IMatchResult ToMatchResult ();
[<Android.Runtime.Register("toMatchResult", "()Ljava/util/regex/MatchResult;", "")>]
member this.ToMatchResult : unit -> Java.Util.Regex.IMatchResult

Returns

a MatchResult with the state of this matcher

Attributes

Exceptions

if no successful match has been made.

Remarks

Returns the match state of this matcher as a MatchResult. The result is unaffected by subsequent operations performed upon this matcher.

Added in 1.5.

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

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