RegExp
Constructors
<init>
Exposes the JavaScript RegExp object to Kotlin.
RegExp
(
pattern
:
String
,
flags
:
String
?
=
definedExternally
)
Properties
global
val
global
:
Boolean
ignoreCase
val
ignoreCase
:
Boolean
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
multiline
val
multiline
:
Boolean
Functions
exec
fun
exec
(
str
:
String
)
:
RegExpMatch
?
test
fun
test
(
str
:
String
)
:
Boolean
toString
fun
toString
(
)
:
String
Extension Functions
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
(
)