class RegExp
Exposes the JavaScript RegExp object to Kotlin.
Exposes the JavaScript RegExp object to Kotlin.
RegExp(pattern: String, flags: String? = definedExternally)
val global: Boolean
val ignoreCase: Boolean
The lastIndex is a read/write integer property of regular expressions that specifies the index at which to start the next match.
var lastIndex: Int
val multiline: Boolean
fun exec(str: String): RegExpMatch?
fun test(str: String): Boolean
fun toString(): String
Resets the regular expression so that subsequent RegExp.test and RegExp.exec calls will match starting with the beginning of the input string.
fun RegExp.reset()
© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.js/-reg-exp/index.html