RegExp
Constructors
<init>
Exposes the JavaScript RegExp object to Kotlin.
RegExp(pattern: String, flags: String? = definedExternally)Properties
global
val global: BooleanignoreCase
val ignoreCase: BooleanlastIndex
The lastIndex is a read/write integer property of regular expressions that specifies the index at which to start the next match.
var lastIndex: Intmultiline
val multiline: BooleanFunctions
exec
fun exec(str: String): RegExpMatch?test
fun test(str: String): BooleantoString
fun toString(): StringExtension 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()