MatchGroup

data actual class MatchGroup (source)

Represents the results from a single capturing group within a MatchResult of Regex.

Parameters

value - The value of captured group.

range -

The range of indices in the input string where group was captured.

The range property is available on JVM only.

Constructors

<init>

MatchGroup(actual value: String, range: IntRange)
MatchGroup(actual value: String)

Represents the results from a single capturing group within a MatchResult of Regex.

Properties

range

val range: IntRange

value

actual val value: String

Inherited Functions

equals

open operator fun equals(other: Any?): Boolean

Indicates whether some other object is "equal to" this one. Implementations must fulfil the following requirements:

hashCode

open fun hashCode(): Int

Returns a hash code value for the object. The general contract of hashCode is:

toString

open fun toString(): String

Returns a string representation of the object.