external interface RegExpMatch
Platform and version requirements: JS
Represents the return value of RegExp.exec.
abstract val index: Int | |
abstract val input: String | |
abstract val length: Int |
open operator fun equals(other: Any?): Boolean Indicates whether some other object is "equal to" this one. Implementations must fulfil the following requirements: | |
open fun hashCode(): Int Returns a hash code value for the object. The general contract of hashCode is: | |
open fun toString(): String Returns a string representation of the object. |
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. | |
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. |
© 2010–2018 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.js/-reg-exp-match/index.html