RegExp

JS
1.1
class RegExp
(source)

Exposes the JavaScript RegExp object to Kotlin.

Constructors

JS
1.1

<init>

Exposes the JavaScript RegExp object to Kotlin.

RegExp ( pattern : String , flags : String ? = definedExternally )

Properties

JS
1.1

global

val global : Boolean
JS
1.1

ignoreCase

val ignoreCase : Boolean
JS
1.1

lastIndex

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
JS
1.1

multiline

val multiline : Boolean

Functions

JS
1.1

exec

fun exec ( str : String ) : RegExpMatch ?
JS
1.1

test

fun test ( str : String ) : Boolean
JS
1.1

toString

fun toString ( ) : String

Extension Functions

JS
1.1

reset

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 ( )