<init>

Common
JVM
JS
1.0
<init>(pattern: String)

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

Common
JVM
JS
1.0
<init>(pattern: String, option: RegexOption)

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

Common
JVM
JS
1.0
<init>(pattern: String, options: Set<RegexOption>)
For JVM

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.