IMatchResult.End Method

Definition

Overloads

End()

Returns the offset after the last character matched.

End(Int32)

Returns the offset after the last character of the subsequence captured by the given group during this match.

End()

Returns the offset after the last character matched.

[Android.Runtime.Register("end", "()I", "GetEndHandler:Java.Util.Regex.IMatchResultInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public int End ();
[<Android.Runtime.Register("end", "()I", "GetEndHandler:Java.Util.Regex.IMatchResultInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member End : unit -> int

Returns

The offset after the last character matched

Attributes

Remarks

Returns the offset after the last character matched.

Java documentation for java.util.regex.MatchResult.end().

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

End(Int32)

Returns the offset after the last character of the subsequence captured by the given group during this match.

[Android.Runtime.Register("end", "(I)I", "GetEnd_IHandler:Java.Util.Regex.IMatchResultInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public int End (int group);
[<Android.Runtime.Register("end", "(I)I", "GetEnd_IHandler:Java.Util.Regex.IMatchResultInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member End : int -> int

Parameters

group
Int32

The index of a capturing group in this matcher's pattern

Returns

The offset after the last character captured by the group, or -1 if the match was successful but the group itself did not match anything

Attributes

Remarks

Returns the offset after the last character of the subsequence captured by the given group during this match.

Capturing groups are indexed from left to right, starting at one. Group zero denotes the entire pattern, so the expression m.end(0) is equivalent to m.end().

Java documentation for java.util.regex.MatchResult.end(int).

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