Share via


IMatchResult.Start Method

Definition

Overloads

Start()

Returns the start index of the match.

Start(Int32)

Returns the start index of the subsequence captured by the given group during this match.

Start()

Returns the start index of the match.

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

Returns

The index of the first character matched

Attributes

Remarks

Returns the start index of the match.

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

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

Start(Int32)

Returns the start index of the subsequence captured by the given group during this match.

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

Parameters

group
Int32

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

Returns

The index of the first character captured by the group, or -1 if the match was successful but the group itself did not match anything

Attributes

Remarks

Returns the start index 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.start(0) is equivalent to m.start().

Java documentation for java.util.regex.MatchResult.start(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