RegExpMatch

external interface RegExpMatch(source)

Represents the return value of RegExp.exec.

Since Kotlin

1.1

Properties

Link copied to clipboard
abstract val index: Int
Since Kotlin 1.1
Link copied to clipboard
abstract val input: String
Since Kotlin 1.1
Link copied to clipboard
abstract val length: Int
Since Kotlin 1.1

Functions

Link copied to clipboard
inline fun RegExpMatch.asArray(): Array<out String?>

Converts the result of RegExp.exec to an array where the first element contains the entire matched text and each subsequent element is the text matched by each capturing parenthesis.

Since Kotlin 1.1
Link copied to clipboard
inline operator fun RegExpMatch.get(index: Int): String?

Returns the entire text matched by RegExp.exec if the index parameter is 0, or the text matched by the capturing parenthesis at the given index.

Since Kotlin 1.1