MatchResult

interface MatchResult(source)

Represents the results from a single regular expression match.

Since Kotlin

1.1
interface MatchResult(source)

Represents the results from a single regular expression match.

Since Kotlin

1.0

Types

Link copied to clipboard

Provides components for destructuring assignment of group values.

Since Kotlin 1.1

Provides components for destructuring assignment of group values.

Since Kotlin 1.0

Properties

Link copied to clipboard

An instance of MatchResult.Destructured wrapper providing components for destructuring assignment of group values.

Since Kotlin 1.1

An instance of MatchResult.Destructured wrapper providing components for destructuring assignment of group values.

Since Kotlin 1.0
Link copied to clipboard

A collection of groups matched by the regular expression.

Since Kotlin 1.1

A collection of groups matched by the regular expression.

Since Kotlin 1.0
Link copied to clipboard
abstract val groupValues: List<String>

A list of matched indexed group values.

Since Kotlin 1.1
abstract val groupValues: List<String>

A list of matched indexed group values.

Since Kotlin 1.0
Link copied to clipboard
abstract val range: IntRange

The range of indices in the original string where match was captured.

Since Kotlin 1.1
abstract val range: IntRange

The range of indices in the original string where match was captured.

Since Kotlin 1.0
Link copied to clipboard
abstract val value: String

The substring from the input string captured by this match.

Since Kotlin 1.1
abstract val value: String

The substring from the input string captured by this match.

Since Kotlin 1.0

Functions

Link copied to clipboard
abstract fun next(): MatchResult?

Returns a new MatchResult with the results for the next match, starting at the position at which the last match ended (at the character after the last matched character).

Since Kotlin 1.1
abstract fun next(): MatchResult?

Returns a new MatchResult with the results for the next match, starting at the position at which the last match ended (at the character after the last matched character).

Since Kotlin 1.0