W3cubDocs

/Kotlin

<init>

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
<init>(pattern: String)

Creates a regular expression from the specified pattern string and the default options.

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
<init>(pattern: String, option: RegexOption)

Creates a regular expression from the specified pattern string and the specified single option.

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
<init>(pattern: String, options: Set<RegexOption>)
For JVM, Native

Creates a regular expression from the specified pattern string and the specified set of options.

For JS

Creates a regular expression from the specified pattern string and the specified set of options.

Constructor Creates a regular expression from the specified pattern string and the specified set of options.

© 2010–2019 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.text/-regex/-init-.html